Skip to content

Commit

Permalink
fix GHCR build
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorPolyakov committed Sep 18, 2024
1 parent 7687457 commit cd48e75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
go-version: '1.23'

- name: Build Docker Image
run: docker build --build-arg VERSION=$(git describe --tags --always) --build-arg BUILDTIME="$(date -R)" . -f build/Dockerfile -t ghcr.io/${{ github.repository }}:latest
run: |
git fetch --unshallow --tags
BUILDTIME=$(date -R)
docker build --build-arg VERSION=$(git describe --tags --always) --build-arg BUILDTIME='$BUILDTIME' . -f build/Dockerfile -t ghcr.io/${{ github.repository }}:latest
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
Expand Down

0 comments on commit cd48e75

Please sign in to comment.