Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(.github): add on:push:branches: condition to autoware-base workflow #5524

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
mitsudome-r marked this conversation as resolved.
Show resolved Hide resolved
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
*.args.BASE_IMAGE=${{ needs.load-env.outputs.base_image }}
Loading