Skip to content

Commit f6cb340

Browse files
committed
fix sanitize
1 parent 8cf4b53 commit f6cb340

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/bootc.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build bootc images
2-
2+
permissions:
3+
contents: read
4+
packages: write
5+
id-token: write
36
on:
47
schedule:
58
- cron: "0 4 * * *" # every day at 4am UTC
@@ -18,7 +21,7 @@ jobs:
1821
arch: [x86_64, aarch64]
1922
variant:
2023
- name: nothing
21-
image: ghcr.io/ultramarine-linux/shade/nothing:${{ github.ref_name || 'main' }}
24+
image: ghcr.io/ultramarine-linux/shade/nothing
2225
# - name: cinnamon
2326
# image: ghcr.io/ultramarine-linux/shade/cinnamon:${{ github.ref_name || 'main' }}
2427
# - name: sway
@@ -30,15 +33,16 @@ jobs:
3033
# set build platform for OCI
3134
BUILD_PLATFORM: ${{ contains(matrix.arch, 'aarch64') && 'linux/arm64' || 'linux/amd64' }}
3235
# IMAGE_TAG: "${{ matrix.variant.image }}-${{ matrix.arch }}"
36+
TAG: "${{ github.ref_name || 'main' }}"
3337
BUILD_CONTEXT: "shades/${{ matrix.variant.name }}"
3438
steps:
3539
- name: Checkout
3640
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3741

3842
- name: Sanitize image tag
3943
run: |
40-
IMAGE_TAG=$(echo "${{ matrix.variant.image }}-${{ matrix.arch }}" | tr '[:upper:]' '[:lower:]' | tr '/' '-')
41-
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
44+
TAG=$(echo "${{ github.ref_name || 'main' }}-${{ matrix.arch }}" | tr '[:upper:]' '[:lower:]' | tr '/' '-')
45+
echo "IMAGE_TAG=${{ matrix.variant.image }}:$IMAGE_TAG" >> $GITHUB_ENV
4246
4347
- name: Login to GitHub Container Registry
4448
# if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)