3535 matrix :
3636 include :
3737 - base_image : " ghcr.io/ublue-os/bazzite:stable"
38- image_suffix : " amd-intel "
38+ image_suffix : " "
3939 - base_image : " ghcr.io/ublue-os/bazzite-nvidia:stable"
40- image_suffix : " nvidia"
40+ image_suffix : " - nvidia"
4141
4242 env :
4343 BASE_IMAGE : ${{ matrix.base_image }}
8181 # This generates all the tags for your image, you can add custom tags here too!
8282 # Default tags are "$DEFAULT_TAG" and "$DEFAULT_TAG.$date".
8383 tags : |
84- type=raw,value=${{ env.DEFAULT_TAG }}- ${{ matrix.image_suffix }}
85- type=raw,value=${{ env.DEFAULT_TAG }}- ${{ matrix.image_suffix }}.{{date 'YYYYMMDD'}}
86- type=raw,value={{date 'YYYYMMDD'}}- ${{ matrix.image_suffix }}
84+ type=raw,value=${{ env.DEFAULT_TAG }}${{ matrix.image_suffix }}
85+ type=raw,value=${{ env.DEFAULT_TAG }}${{ matrix.image_suffix }}.{{date 'YYYYMMDD'}}
86+ type=raw,value={{date 'YYYYMMDD'}}${{ matrix.image_suffix }}
8787 type=sha,enable=${{ github.event_name == 'pull_request' }}
8888 type=ref,event=pr
8989 labels : |
@@ -113,7 +113,7 @@ jobs:
113113 ./Containerfile
114114 # Postfix image name with -custom to make it a little more descriptive
115115 # Syntax: https://docs.github.com/en/actions/learn-github-actions/expressions#format
116- image : ${{ env.IMAGE_NAME }}
116+ image : ${{ env.IMAGE_NAME }}${{ matrix.image_suffix }}
117117 tags : ${{ steps.metadata.outputs.tags }}
118118 labels : ${{ steps.metadata.outputs.labels }}
119119 oci : false
@@ -163,7 +163,7 @@ jobs:
163163 REGISTRY_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
164164 with :
165165 registry : ${{ env.IMAGE_REGISTRY }}
166- image : ${{ env.IMAGE_NAME }}
166+ image : ${{ env.IMAGE_NAME }}${{ matrix.image_suffix }}
167167 tags : ${{ steps.metadata.outputs.tags }}
168168 username : ${{ env.ACTOR_LC }}
169169 password : ${{ env.REGISTRY_PASSWORD }}
@@ -181,7 +181,7 @@ jobs:
181181 - name : Sign container image
182182 if : github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
183183 run : |
184- IMAGE_FULL="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}"
184+ IMAGE_FULL="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}${{ matrix.image_suffix }} "
185185 for tag in ${{ steps.metadata.outputs.tags }}; do
186186 cosign sign -y --key env://COSIGN_PRIVATE_KEY $IMAGE_FULL:$tag
187187 done
0 commit comments