Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Sep 4, 2024
1 parent bc97baa commit 92b8704
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ runs:
echo "$EOF" >> $GITHUB_OUTPUT
shell: bash

- name: Docker meta for base
- name: Docker meta for autoware:base
id: meta-base
uses: docker/metadata-action@v5
with:
Expand All @@ -103,49 +103,38 @@ runs:
latest=false
suffix=-base${{ inputs.tag-suffix }}
- name: Docker meta for autoware-core
id: meta-autoware-core
- name: Docker meta for autoware:core-devel
id: meta-core-devel
uses: docker/metadata-action@v5
with:
images: ${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: ${{ steps.set-docker-tags.outputs.tags }}
bake-target: docker-metadata-action-autoware-core
bake-target: docker-metadata-action-core-devel
flavor: |
latest=false
suffix=-autoware-core${{ inputs.tag-suffix }}
suffix=-core-devel${{ inputs.tag-suffix }}
- name: Docker meta for autoware-universe
id: meta-autoware-universe
- name: Docker meta for autoware:universe-devel
id: meta-universe-devel
uses: docker/metadata-action@v5
with:
images: ${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: ${{ steps.set-docker-tags.outputs.tags }}
bake-target: docker-metadata-action-autoware-universe
bake-target: docker-metadata-action-universe-devel
flavor: |
latest=false
suffix=-autoware-universe${{ inputs.tag-suffix }}
suffix=-universe-devel${{ inputs.tag-suffix }}
- name: Docker meta for devel
id: meta-devel
- name: Docker meta for autoware:universe
id: meta-universe
uses: docker/metadata-action@v5
with:
images: ${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: ${{ steps.set-docker-tags.outputs.tags }}
bake-target: docker-metadata-action-devel
bake-target: docker-metadata-action-universe
flavor: |
latest=false
suffix=-devel${{ inputs.tag-suffix }}
- name: Docker meta for runtime
id: meta-runtime
uses: docker/metadata-action@v5
with:
images: ${{ github.repository_owner }}/${{ inputs.bake-target }}
tags: ${{ steps.set-docker-tags.outputs.tags }}
bake-target: docker-metadata-action-runtime
flavor: |
latest=auto
suffix=-runtime${{ inputs.tag-suffix }}
suffix=-universe${{ inputs.tag-suffix }}
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -160,10 +149,9 @@ runs:
files: |
docker/docker-bake.hcl
${{ steps.meta-base.outputs.bake-file }}
${{ steps.meta-autoware-core.outputs.bake-file }}
${{ steps.meta-autoware-universe.outputs.bake-file }}
${{ steps.meta-devel.outputs.bake-file }}
${{ steps.meta-runtime.outputs.bake-file }}
${{ steps.meta-core-devel.outputs.bake-file }}
${{ steps.meta-universe-devel.outputs.bake-file }}
${{ steps.meta-universe.outputs.bake-file }}
provenance: false
set: |
${{ inputs.build-args }}

0 comments on commit 92b8704

Please sign in to comment.