docker-build-and-push-main #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker-build-and-push-main | |
on: | |
workflow_dispatch: | |
jobs: | |
docker-build-and-push-main: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
name: | |
- no-nvidia | |
include: | |
- name: no-nvidia | |
base_image_env: base_image | |
setup-args: --no-nvidia | |
additional-tag-suffix: "" | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Free disk space | |
uses: ./.github/actions/free-disk-space | |
- name: Load env | |
run: | | |
cat amd64.env | sed -e "s/^\s*//" -e "/^#/d" >> $GITHUB_ENV | |
if [ "$(uname -m)" = "aarch64" ]; then | |
cat arm64.env | sed -e "s/^\s*//" -e "/^#/d" >> $GITHUB_ENV | |
fi | |
- name: Build 'autoware-universe' | |
uses: ./.github/actions/docker-build-and-push | |
with: | |
bake-target: autoware-universe | |
build-args: | | |
*.platform=linux/amd64 | |
*.args.ROS_DISTRO=${{ env.rosdistro }} | |
*.args.BASE_IMAGE=${{ env[format('{0}', matrix.base_image_env)] }} | |
*.args.SETUP_ARGS=${{ matrix.setup-args }} | |
tag-prefix: ${{ env.rosdistro }}- | |
tag-suffix: ${{ matrix.additional-tag-suffix }} | |
- name: Show disk space | |
run: | | |
df -h |