8787 type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
8888 type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
8989 labels : |
90- org.opencontainers.image.authors=For inquiries, please use https://github.com/XRPLF/ci /issues
91- org.opencontainers.image.documentation=https://github.com/XRPLF/ci
90+ org.opencontainers.image.authors=For inquiries, please use https://${{ github.repository }} /issues
91+ org.opencontainers.image.documentation=https://${{ github.repository }}
9292 org.opencontainers.image.vendor=XRPLF
9393 org.opencontainers.image.title=${{ env.CONTAINER_REPOSITORY }}
9494 - name : Build and push the Docker image
@@ -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 : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
111+ push : ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
112112 sbom : true
113113 labels : ${{ steps.meta.outputs.labels }}
114114 target : ${{ matrix.os.compiler_name }}
115115 - name : Export digest
116- if : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
116+ if : ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
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 : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
123+ if : ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
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 : ${{ github.ref_type == 'branch' && github.ref_name == 'main' }}
132+ if : ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
133133 strategy :
134134 matrix :
135135 os :
0 commit comments