Skip to content

Commit 8b9a60d

Browse files
committed
fix workflow part XIV
1 parent 1b67370 commit 8b9a60d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/build-release-latest.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ on:
44
tags-ignore: 'v*'
55
branches: '*'
66

7-
env:
8-
# ERROR: failed to build: invalid tag "ghcr.io/HenriWahl/checkmk-agent-plugin-yum/build:build-image": repository name must be lowercase
9-
# this is the penalty for using uppercase letters in repository names...
10-
cr_image: ghcr.io/henriwahl/checkmk-agent-plugin-yum/build
11-
127
jobs:
138
build-image:
149
runs-on: ubuntu-latest
@@ -22,10 +17,10 @@ jobs:
2217
registry: ghcr.io
2318
username: ${{ github.actor }}
2419
password: ${{ secrets.GITHUB_TOKEN }}
25-
# somehow weird way to get the hash over the requirements to be aware if they changed
2620
- id: get_hash
2721
run: echo "HASH=$(ls -lR | xargs | md5sum | cut -d\ -f1)" >> $GITHUB_OUTPUT
28-
- run: echo "Computed hash ${{ steps.get_hash.outputs.HASH }}"
22+
- id: get_image
23+
run: echo "(${{ github.repository }} | tr '[:upper:]' '[:lower:]'):${{ steps.get_hash.outputs.HASH }}"
2924
# build container image for package creation
3025
- run: docker pull ${{ env.cr_image }}:${{ steps.get_hash.outputs.HASH }} || docker build -t ${{ env.cr_image }}:${{ steps.get_hash.outputs.HASH }} -f dockerfiles/checkmk/Dockerfile .
3126
- run: docker push ${{ env.cr_image }}:${{ steps.get_hash.outputs.HASH }}

0 commit comments

Comments
 (0)