Skip to content

Commit cfe1630

Browse files
author
Oleg
committed
Emulate push to the main branch
1 parent 2bd10c6 commit cfe1630

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: Add tag with version to the image
113113
run: podman tag ${{ steps.build_image.outputs.image-with-tag }} ${{ steps.build_image.outputs.image }}:${{ steps.current-version.outputs.value }}
@@ -120,21 +120,21 @@ jobs:
120120
image: ${{ steps.build_image.outputs.image }}
121121
tags: ${{ steps.current-version.outputs.value }} ${{ steps.build_image.outputs.tags }}
122122
registry: ${{ env.IMAGE_REGISTRY }}
123-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
123+
if: github.event_name == 'push' && github.ref == 'refs/heads/test-publication'
124124

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

133133
mark-previous-version:
134134
needs: [build, meta]
135135
runs-on: ubuntu-latest
136136

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

139139
permissions:
140140
contents: write

0 commit comments

Comments
 (0)