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): separate autoware-base jobs #5487

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
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
26 changes: 24 additions & 2 deletions .github/workflows/autoware-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,35 @@ 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: 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

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -24,6 +46,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 }}
2 changes: 2 additions & 0 deletions docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ COPY setup-dev-env.sh ansible-galaxy-requirements.yaml amd64.env arm64.env /auto
COPY ansible/ /autoware/ansible/
COPY docker/scripts/cleanup_apt.sh /autoware/cleanup_apt.sh
RUN chmod +x /autoware/cleanup_apt.sh
COPY docker/scripts/cleanup_system.sh /autoware/cleanup_system.sh
RUN chmod +x /autoware/cleanup_system.sh
WORKDIR /autoware

# Install apt packages and add GitHub to known hosts for private repositories
Expand Down
Loading