Skip to content

Commit

Permalink
fix: adjust docker tags (#3297)
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomofjoy authored May 23, 2024
1 parent 77ceee5 commit f097acc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:version-${{ env.VERSION }}-${{ matrix.variant }}
${{ matrix.variant == 'root' && format('{0}/{1}:version-{2}', env.REGISTRY, env.IMAGE_NAME, env.VERSION) || '' }}
${{ matrix.variant == 'nonroot' && format('{0}/{1}:version-{2}-{3}', env.REGISTRY, env.IMAGE_NAME, env.VERSION, matrix.variant) || '' }}
${{ matrix.variant == 'debug' && format('{0}/{1}:version-{2}-{3}', env.REGISTRY, env.IMAGE_NAME, env.VERSION, matrix.variant) || '' }}
${{ matrix.variant == 'root' && format('{0}/{1}:latest', env.REGISTRY, env.IMAGE_NAME) || '' }}
${{ matrix.variant == 'nonroot' && format('{0}/{1}:nonroot', env.REGISTRY, env.IMAGE_NAME) || '' }}
${{ matrix.variant == 'debug' && format('{0}/{1}:debug', env.REGISTRY, env.IMAGE_NAME) || '' }}
${{ matrix.variant == 'nonroot' && format('{0}/{1}:latest-nonroot', env.REGISTRY, env.IMAGE_NAME) || '' }}
${{ matrix.variant == 'debug' && format('{0}/{1}:latest-debug', env.REGISTRY, env.IMAGE_NAME) || '' }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BASE_IMAGE=${{ env.BASE_IMAGE }}

0 comments on commit f097acc

Please sign in to comment.