Skip to content

Commit

Permalink
don't build twice same thing
Browse files Browse the repository at this point in the history
  • Loading branch information
dapolach committed Sep 14, 2024
1 parent c7864f4 commit 084af0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/backend_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:
DOCKER_REGISTRY_URL: "https://ghcr.io"
run: |
# Build the Docker image and tag it with both the 'latest', commit hash, and tag if exist
./gradlew bootBuildImage --imageName=ghcr.io/zabiny/klabis-be:latest --publishImage
./gradlew bootBuildImage --imageName=ghcr.io/zabiny/klabis-be:$(git rev-parse --short HEAD) --publishImage
./gradlew bootBuildImage --imageName=ghcr.io/zabiny/klabis-be:latest
docker tag ghcr.io/zabiny/klabis-be:latest ghcr.io/zabiny/klabis-be:$(git rev-parse --short HEAD)
docker push -a
- name: Verify image
run: docker images

0 comments on commit 084af0e

Please sign in to comment.