Skip to content

Commit b0786af

Browse files
author
Oleg
committed
Emulate push to the main branch
1 parent 550260a commit b0786af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
containerfiles: |
7171
Dockerfile
7272
image: ${{ needs.meta.outputs.implementation-name }}
73-
tags: ${{ github.sha }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }}
73+
tags: ${{ github.sha }} ${{ github.ref == 'refs/heads/test-publication' && 'latest' || '' }}
7474
archs: amd64, arm64
7575

7676
- name: Set DOCKER_HOST so podman-built images are findable
@@ -107,7 +107,7 @@ jobs:
107107
username: ${{ github.actor }}
108108
password: ${{ github.token }}
109109
registry: ${{ env.IMAGE_REGISTRY }}
110-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
110+
if: github.event_name == 'push' && github.ref == 'refs/heads/test-publication'
111111

112112
- name: Publish
113113
id: push
@@ -116,21 +116,21 @@ jobs:
116116
image: ${{ steps.build_image.outputs.image }}
117117
tags: ${{ steps.current-version.outputs.value }} ${{ steps.build_image.outputs.tags }}
118118
registry: ${{ env.IMAGE_REGISTRY }}
119-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
119+
if: github.event_name == 'push' && github.ref == 'refs/heads/test-publication'
120120

121121
- name: Generate attestation for images
122122
uses: actions/attest-build-provenance@v2
123123
with:
124124
subject-name: ${{ env.IMAGE_REGISTRY }}/${{ steps.build_image.outputs.image }}
125125
subject-digest: ${{ steps.push.outputs.digest }}
126126
push-to-registry: true
127-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
127+
if: github.event_name == 'push' && github.ref == 'refs/heads/test-publication'
128128

129129
mark-previous-version:
130130
needs: [build, meta]
131131
runs-on: ubuntu-latest
132132

133-
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.build.outputs.current-version != needs.meta.outputs.latest-version
133+
if: github.event_name == 'push' && github.ref == 'refs/heads/test-publication' && needs.build.outputs.current-version != needs.meta.outputs.latest-version
134134

135135
permissions:
136136
contents: write

0 commit comments

Comments
 (0)