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:
|
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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user