Skip to content

Commit

Permalink
Build ghcr.io/golang-cz/static-analysis:latest along with specific do…
Browse files Browse the repository at this point in the history
…cker tag
  • Loading branch information
VojtechVitek committed Oct 15, 2023
1 parent d2e3f9e commit a16f233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
PULL_REQUEST_ID=${{ github.event.number }}
export COMMIT="$(git log -1 --pretty=format:'%h')"
export VERSION="$(date -d @$(git log -n1 --format=%at) +'v%-y.%-m.%-d')-${COMMIT}${PULL_REQUEST_ID:+-PR-$PULL_REQUEST_ID}"
docker build -t ghcr.io/golang-cz/static-analysis:$VERSION .
docker build -t ghcr.io/golang-cz/static-analysis:$VERSION -t ghcr.io/golang-cz/static-analysis:latest .
docker push ghcr.io/golang-cz/static-analysis:$VERSION
docker push ghcr.io/golang-cz/static-analysis:latest

0 comments on commit a16f233

Please sign in to comment.