Skip to content

Commit 5f3db9e

Browse files
committed
add paths arg
Signed-off-by: Yutaka Kondo <[email protected]>
1 parent d8367f9 commit 5f3db9e

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

.github/workflows/autoware-base.yaml

+10-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: autoware-base
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- docker/Dockerfile.base
9+
- docker/scripts/cleanup_*.sh
10+
- .github/actions/docker-build-and-push-base/*
11+
- .github/workflows/autoware-base.yaml
412
schedule:
513
- cron: 0 0 15 * * # every 15th of the month
614
workflow_dispatch:
@@ -9,28 +17,9 @@ jobs:
917
load-env:
1018
uses: ./.github/workflows/load-env.yaml
1119

12-
autoware-base-amd64:
20+
autoware-base:
1321
needs: load-env
1422
runs-on: ubuntu-22.04
15-
steps:
16-
- name: Check out this repository
17-
uses: actions/checkout@v4
18-
19-
- name: Free disk space
20-
uses: ./.github/actions/free-disk-space
21-
22-
- name: Build Autoware's base images
23-
uses: ./.github/actions/docker-build-and-push-base
24-
with:
25-
target-image: autoware-base
26-
build-args: |
27-
*.platform=linux/amd64
28-
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
29-
*.args.BASE_IMAGE=${{ needs.load-env.outputs.base_image }}
30-
31-
autoware-base-arm64:
32-
needs: [load-env, autoware-base-amd64]
33-
runs-on: ubuntu-22.04
3423
steps:
3524
- name: Check out this repository
3625
uses: actions/checkout@v4
@@ -46,6 +35,6 @@ jobs:
4635
with:
4736
target-image: autoware-base
4837
build-args: |
49-
*.platform=linux/arm64
38+
*.platform=linux/amd64,linux/arm64
5039
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
5140
*.args.BASE_IMAGE=${{ needs.load-env.outputs.base_image }}

0 commit comments

Comments
 (0)