update docker tag string github action
This commit is contained in:
4
.github/workflows/image.yml
vendored
4
.github/workflows/image.yml
vendored
@@ -25,6 +25,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Set release version
|
||||||
|
run: echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
|
||||||
- name: Build and Push
|
- name: Build and Push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -34,4 +36,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REGISTRY_IMAGE }}:latest
|
${{ env.REGISTRY_IMAGE }}:latest
|
||||||
${{ env.REGISTRY_IMAGE }}:${GITHUB_REF##*/}
|
${{ env.REGISTRY_IMAGE }}:${{ env.RELEASE_VERSION }}
|
||||||
|
|||||||
Reference in New Issue
Block a user