Update docker-image.yml

add latest tag to building docker container image for master branch
This commit is contained in:
PascalR 2023-08-18 07:26:51 +02:00 committed by GitHub
parent 02da57961c
commit 9afbbd8e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,9 @@ jobs:
uses: docker/metadata-action@v4 uses: docker/metadata-action@v4
with: with:
images: ${{ env.REGISTRY_NAME }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY_NAME }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
- name: Building And Pushing Image - name: Building And Pushing Image
id: docker_build id: docker_build
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
@ -62,4 +64,4 @@ jobs:
# tags: ghcr.io/${{ github.repository_owner }}/nostr-rs-relay:latest # tags: ghcr.io/${{ github.repository_owner }}/nostr-rs-relay:latest
- name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}