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

Demo fixed #10

Merged
merged 8 commits into from
Nov 23, 2023
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
44 changes: 42 additions & 2 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ runs:
echo ::set-output name=tags::$tags_multiline
shell: bash

- name: Docker meta for base
id: meta-base
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: ${{ steps.set-docker-tags.outputs.tags }}
bake-target: docker-metadata-action-base
flavor: |
latest=false
prefix=${{ inputs.tag-prefix }}
suffix=-base${{ inputs.tag-suffix }}

- name: Docker meta for devel
id: meta-devel
uses: docker/metadata-action@v4
Expand All @@ -64,7 +76,7 @@ runs:
flavor: |
latest=false
prefix=${{ inputs.tag-prefix }}
suffix=${{ inputs.tag-suffix }}
suffix=-devel${{ inputs.tag-suffix }}

- name: Docker meta for prebuilt
id: meta-prebuilt
Expand All @@ -77,6 +89,30 @@ runs:
latest=false
prefix=${{ inputs.tag-prefix }}
suffix=-prebuilt${{ inputs.tag-suffix }}

- name: Docker meta for runtime-monolithic
id: meta-runtime-monolithic
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: ${{ steps.set-docker-tags.outputs.tags }}
bake-target: docker-metadata-action-runtime-monolithic
flavor: |
latest=false
prefix=${{ inputs.tag-prefix }}
suffix=-runtime-monolithic${{ inputs.tag-suffix }}

- name: Docker meta for runtime-planning-control
id: meta-runtime-planning-control
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: ${{ steps.set-docker-tags.outputs.tags }}
bake-target: docker-metadata-action-runtime-planning-control
flavor: |
latest=false
prefix=${{ inputs.tag-prefix }}
suffix=-runtime-planning-control${{ inputs.tag-suffix }}

- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
Expand All @@ -90,10 +126,14 @@ runs:
uses: docker/bake-action@v2
with:
# Checking event_name for https://github.com/autowarefoundation/autoware/issues/2796
push: ${{ github.event_name == 'schedule' || github.ref_name == github.event.repository.default_branch || github.event_name == 'push'}}
# ${{ github.event_name == 'schedule' || github.ref_name == github.event.repository.default_branch || github.event_name == 'push'}}
push: true
files: |
docker/${{ inputs.bake-target }}/docker-bake.hcl
${{ steps.meta-base.outputs.bake-file }}
${{ steps.meta-devel.outputs.bake-file }}
${{ steps.meta-prebuilt.outputs.bake-file }}
${{ steps.meta-runtime-monolithic.outputs.bake-file }}
${{ steps.meta-runtime-planning-control.outputs.bake-file }}
set: |
${{ inputs.build-args }}
33 changes: 0 additions & 33 deletions .github/workflows/backport.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/build-main-self-hosted.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/build-main.yaml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/docker-build-and-push-main-self-hosted.yaml

This file was deleted.

43 changes: 23 additions & 20 deletions .github/workflows/docker-build-and-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,27 @@ on:
jobs:
docker-build-and-push-main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name:
- no-cuda
- cuda
include:
- name: no-cuda
base_image_env: base_image
setup-args: --no-nvidia
additional-tag-suffix: ""
- name: cuda
base_image_env: cuda_base_image
setup-args: --no-cuda-drivers
additional-tag-suffix: -cuda
# strategy:
# fail-fast: false
# matrix:
# name:
# - no-cuda
# - cuda
# include:
# - name: no-cuda
# base_image_env: base_image
# setup-args: --no-nvidia
# additional-tag-suffix: ""
# - name: cuda
# base_image_env: cuda_base_image
# setup-args: --no-cuda-drivers
# additional-tag-suffix: -cuda
steps:
# https://github.com/actions/checkout/issues/211
- name: Change permission of workspace
run: |
sudo chown -R $USER:$USER ${{ github.workspace }}

- name: Check out repository
uses: actions/checkout@v3

Expand All @@ -44,15 +49,13 @@ jobs:
- name: Build 'autoware-universe'
uses: ./.github/actions/docker-build-and-push
with:
bake-target: autoware-universe
bake-target: autoware-openadk
build-args: |
*.platform=linux/amd64
*.args.ROS_DISTRO=${{ env.rosdistro }}
*.args.BASE_IMAGE=${{ env[format('{0}', matrix.base_image_env)] }}
*.args.PREBUILT_BASE_IMAGE=${{ env.prebuilt_base_image }}
*.args.SETUP_ARGS=${{ matrix.setup-args }}
*.args.BASE_IMAGE=${{ env.base_image }}
tag-prefix: ${{ env.rosdistro }}-
tag-suffix: ${{ matrix.additional-tag-suffix }}-amd64
tag-suffix: -amd64

- name: Show disk space
run: |
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/mirror-main-branch.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/pre-commit-ansible-autoupdate.yaml

This file was deleted.

Loading