We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2496fb8 commit 505d912Copy full SHA for 505d912
1 file changed
.github/workflows/build-docker.yml
@@ -2,6 +2,7 @@
2
3
name: Docker Build & Publish to GitHub Container Registry
4
on:
5
+ pull_request:
6
push:
7
branches:
8
- 'main'
@@ -40,9 +41,9 @@ jobs:
40
41
- name: Build and Push Latest Docker Image
42
id: build-and-push-latest
43
uses: docker/build-push-action@v2
- if: ${{ github.ref == 'refs/heads/main' }}
44
+ if: ${{ github.ref_type == 'branch' }}
45
with:
46
context: .
- push: true
47
+ push: ${{ github.ref == 'refs/heads/main' }}
48
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
49
labels: ${{ steps.meta.outputs.labels }}
0 commit comments