3434
3535 - name : Docker login on main origin
3636 uses : docker/login-action@v3
37- # if: github.event_name != 'pull_request'
37+ if : github.event_name != 'pull_request'
3838 with :
3939 registry : ghcr.io
4040 username : ${{ github.repository_owner }}
6666 context : .
6767 cache-from : type=gha,scope=base
6868 cache-to : type=gha,scope=base,mode=max
69- # push: ${{ github.ref == 'refs/heads/main' }}
70- push : true
69+ push : ${{ github.ref == 'refs/heads/main' }}
7170 tags : ${{ steps.meta.outputs.tags }}
7271 labels : ${{ steps.meta.outputs.labels }}
7372 platforms : linux/amd64
@@ -128,7 +127,7 @@ jobs:
128127
129128 - name : Docker login on main origin
130129 uses : docker/login-action@v3
131- # if: github.event_name != 'pull_request'
130+ if : github.event_name != 'pull_request'
132131 with :
133132 registry : ghcr.io
134133 username : ${{ github.repository_owner }}
@@ -140,8 +139,7 @@ jobs:
140139 context : .
141140 cache-from : type=gha,scope=otel
142141 cache-to : type=gha,scope=otel,mode=max
143- # push: ${{ github.ref == 'refs/heads/main' }}
144- push : true
142+ push : ${{ github.ref == 'refs/heads/main' }}
145143 tags : ${{ steps.meta.outputs.tags }}
146144 labels : ${{ steps.meta.outputs.labels }}
147145 platforms : linux/amd64
0 commit comments