Skip to content

Commit

Permalink
add paths arg
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Dec 2, 2024
1 parent d8367f9 commit 5f3db9e
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/autoware-base.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: autoware-base

on:
push:
branches:
- main
paths:
- docker/Dockerfile.base
- docker/scripts/cleanup_*.sh
- .github/actions/docker-build-and-push-base/*
- .github/workflows/autoware-base.yaml
schedule:
- cron: 0 0 15 * * # every 15th of the month
workflow_dispatch:
Expand All @@ -9,28 +17,9 @@ jobs:
load-env:
uses: ./.github/workflows/load-env.yaml

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

- name: Free disk space
uses: ./.github/actions/free-disk-space

- 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 @@ -46,6 +35,6 @@ jobs:
with:
target-image: autoware-base
build-args: |
*.platform=linux/arm64
*.platform=linux/amd64,linux/arm64
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs.base_image }}

0 comments on commit 5f3db9e

Please sign in to comment.