File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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-
127jobs :
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 }}
You can’t perform that action at this time.
0 commit comments