Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Add Git Tag to Docker Image
Browse files Browse the repository at this point in the history
  • Loading branch information
theurichde committed Jun 2, 2021
1 parent fec4605 commit b51f2f8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b51f2f8

Please sign in to comment.