From b51f2f8e3c34fec86372cdb54da97850867c08ad Mon Sep 17 00:00:00 2001 From: Tim Heurich Date: Wed, 2 Jun 2021 16:40:12 +0200 Subject: [PATCH] Add Git Tag to Docker Image --- .github/workflows/docker.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index cff86929..61cea94f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -29,16 +29,14 @@ jobs: - name: Build & Push to Docker Hub uses: docker/build-push-action@v2 with: - push: false + push: true tags: | - ${{ github.repository }}:${{ github.sha }} ${{ github.repository }}:${{ steps.derive-git-tag.outputs.tag }} ${{ github.repository }}:latest - name: Build & Push to GHCR uses: docker/build-push-action@v2 with: - push: false + push: true tags: | - ghcr.io/${{ github.repository }}:${{ github.sha }} ghcr.io/${{ github.repository }}:${{ steps.derive-git-tag.outputs.tag }} ghcr.io/${{ github.repository }}:latest \ No newline at end of file