From 80f8d8534787ce1ebf82f4f90645b814adee63fe Mon Sep 17 00:00:00 2001 From: seanghay Date: Sun, 12 Sep 2021 16:51:11 +0700 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f43d2d8..ca660a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,14 @@ jobs: contents: read packages: write - steps: + steps: - name: Checkout repository uses: actions/checkout@v2 - + + - name: Get tag + id: tag + uses: dawidd6/action-get-tag@v1 + - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: @@ -30,7 +34,7 @@ jobs: id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{steps.tag.outputs.tag}} - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc @@ -38,4 +42,4 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}