From 9afbbd8e08115d9008d2475aeeb6e3717b3940ff Mon Sep 17 00:00:00 2001 From: PascalR <24775431+mroxso@users.noreply.github.com> Date: Fri, 18 Aug 2023 07:26:51 +0200 Subject: [PATCH] Update docker-image.yml add latest tag to building docker container image for master branch --- .github/workflows/docker-image.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 808f1d0..1709ca6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -42,7 +42,9 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY_NAME }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} - + tags: | + type=raw,value=latest,enable={{is_default_branch}} + - name: Building And Pushing Image id: docker_build uses: docker/build-push-action@v4 @@ -62,4 +64,4 @@ jobs: # tags: ghcr.io/${{ github.repository_owner }}/nostr-rs-relay:latest - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file + run: echo ${{ steps.docker_build.outputs.digest }}