Skip to content

Commit 0d1b6b7

Browse files
committed
Revert "Push to test"
This reverts commit 989aa91.
1 parent 9e8d8da commit 0d1b6b7

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/debian.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@ jobs:
108108
outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
109109
platforms: ${{ matrix.architecture.platform }}
110110
provenance: mode=max
111-
push: true
111+
push: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
112112
sbom: true
113113
labels: ${{ steps.meta.outputs.labels }}
114114
target: ${{ matrix.os.compiler_name }}
115115
- name: Export digest
116-
if: true
116+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
117117
shell: bash
118118
run: |
119119
mkdir -p /tmp/digests
120120
DIGEST="${{ steps.build.outputs.digest }}"
121121
touch "/tmp/digests/${DIGEST#sha256:}"
122122
- name: Upload digest
123-
if: true
123+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
124124
uses: actions/upload-artifact@v4
125125
with:
126126
name: digests-${{ matrix.os.release }}-${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.PLATFORM_PAIR }}
@@ -129,7 +129,7 @@ jobs:
129129
retention-days: 1
130130

131131
merge:
132-
if: true
132+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
133133
strategy:
134134
matrix:
135135
os:

.github/workflows/rhel.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ jobs:
9898
outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
9999
platforms: ${{ matrix.architecture.platform }}
100100
provenance: mode=max
101-
push: true
101+
push: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
102102
sbom: true
103103
labels: ${{ steps.meta.outputs.labels }}
104104
target: ${{ matrix.os.compiler_name }}
105105
- name: Export digest
106-
if: true
106+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
107107
shell: bash
108108
run: |
109109
mkdir -p /tmp/digests
110110
DIGEST="${{ steps.build.outputs.digest }}"
111111
touch "/tmp/digests/${DIGEST#sha256:}"
112112
- name: Upload digest
113-
if: true
113+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
114114
uses: actions/upload-artifact@v4
115115
with:
116116
name: digests-${{ matrix.os.release }}-${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.PLATFORM_PAIR }}
@@ -119,7 +119,7 @@ jobs:
119119
retention-days: 1
120120

121121
merge:
122-
if: true
122+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
123123
strategy:
124124
matrix:
125125
os:

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,19 @@ jobs:
106106
outputs: type=image,name=${{ env.CONTAINER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
107107
platforms: ${{ matrix.architecture.platform }}
108108
provenance: mode=max
109-
push: true
109+
push: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
110110
sbom: true
111111
labels: ${{ steps.meta.outputs.labels }}
112112
target: ${{ matrix.os.compiler_name }}
113113
- name: Export digest
114-
if: true
114+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
115115
shell: bash
116116
run: |
117117
mkdir -p /tmp/digests
118118
DIGEST="${{ steps.build.outputs.digest }}"
119119
touch "/tmp/digests/${DIGEST#sha256:}"
120120
- name: Upload digest
121-
if: true
121+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
122122
uses: actions/upload-artifact@v4
123123
with:
124124
name: digests-${{ matrix.os.release }}-${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.PLATFORM_PAIR }}
@@ -127,7 +127,7 @@ jobs:
127127
retention-days: 1
128128

129129
merge:
130-
if: true
130+
if: ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
131131
strategy:
132132
matrix:
133133
os:

0 commit comments

Comments
 (0)