From 5f3db9e61999adea343da172d039c871059816fc Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Mon, 2 Dec 2024 21:56:40 +0900 Subject: [PATCH] add paths arg Signed-off-by: Yutaka Kondo --- .github/workflows/autoware-base.yaml | 31 +++++++++------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.github/workflows/autoware-base.yaml b/.github/workflows/autoware-base.yaml index e3d9720bcc..72daa21e9c 100644 --- a/.github/workflows/autoware-base.yaml +++ b/.github/workflows/autoware-base.yaml @@ -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: @@ -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 @@ -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 }}