Skip to content

Commit

Permalink
separate jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Nov 26, 2024
1 parent 9b0b7f2 commit 491cb9d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/autoware-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,25 @@ jobs:
load-env:
uses: ./.github/workflows/load-env.yaml

docker-build-and-push-base:
autoware-base-amd64:
needs: load-env
runs-on: ubuntu-22.04
steps:
- name: Check out this repository
uses: actions/checkout@v4

- name: Build Autoware's base images
uses: ./.github/actions/docker-build-and-push-base
with:
target-image: autoware-base
build-args: |
*.platform=linux/amd64
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs.base_image }}
autoware-base-arm64:
needs: [load-env, autoware-base-amd64]
runs-on: ubuntu-22.04
steps:
- name: Check out this repository
uses: actions/checkout@v4
Expand All @@ -24,6 +40,6 @@ jobs:
with:
target-image: autoware-base
build-args: |
*.platform=linux/amd64,linux/arm64
*.platform=linux/arm64
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs.base_image }}

0 comments on commit 491cb9d

Please sign in to comment.