fix: add docker image tag
This commit is contained in:
12
.github/workflows/docker-release.yml
vendored
12
.github/workflows/docker-release.yml
vendored
@@ -2,10 +2,8 @@ name: Create and publish a Docker image
|
||||
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
- prereleased
|
||||
push:
|
||||
tags: [ "*" ]
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
@@ -42,7 +40,5 @@ jobs:
|
||||
echo "::set-output name=short_sha::$calculatedSha"
|
||||
|
||||
- name: Push image
|
||||
uses: akhilerm/tag-push-action@v2.1.0
|
||||
with:
|
||||
src: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.short_sha }}
|
||||
dst: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
|
||||
run: |
|
||||
docker image tag ${{ steps.meta.outputs.tags }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.short_sha }}
|
||||
|
||||
Reference in New Issue
Block a user