Skip to content

Commit cd4ed90

Browse files
committed
fix: ensure Docker images are pushed to GHCR
- Change push condition from conditional to always true for main branch - Add debug step to print tags and labels information - Fix issue where images were not being published to GHCR despite successful build
1 parent 1e152fc commit cd4ed90

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,17 @@ jobs:
4747
type=semver,pattern={{major}}.{{minor}}
4848
type=sha,prefix=
4949
50+
- name: Print tags info
51+
run: |
52+
echo "Tags: ${{ steps.meta.outputs.tags }}"
53+
echo "Labels: ${{ steps.meta.outputs.labels }}"
54+
5055
- name: Build and push Docker image
5156
uses: docker/build-push-action@v5
5257
with:
5358
context: .
5459
platforms: linux/amd64,linux/arm64
55-
push: ${{ github.event_name != 'pull_request' }}
60+
push: true
5661
tags: ${{ steps.meta.outputs.tags }}
5762
labels: ${{ steps.meta.outputs.labels }}
5863
cache-from: type=gha

0 commit comments

Comments
 (0)