fix: add docker image tag

This commit is contained in:
Krise
2023-08-02 20:29:59 +00:00
parent df82beadaf
commit 07c70d8268

View File

@@ -2,10 +2,8 @@ name: Create and publish a Docker image
on: on:
release: push:
types: tags: [ "*" ]
- published
- prereleased
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
@@ -42,7 +40,5 @@ jobs:
echo "::set-output name=short_sha::$calculatedSha" echo "::set-output name=short_sha::$calculatedSha"
- name: Push image - name: Push image
uses: akhilerm/tag-push-action@v2.1.0 run: |
with: docker image tag ${{ steps.meta.outputs.tags }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.short_sha }}
src: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.short_sha }}
dst: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}