File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 build-image :
99 runs-on : ubuntu-latest
1010 outputs :
11- image_tag : ${{ steps.get_hash .outputs.HASH }}
11+ image : ${{ steps.get_image .outputs.IMAGE }}
1212 steps :
1313 - uses : actions/checkout@v4
1414 # docker login is needed for pushing the test image
2020 - id : get_hash
2121 run : echo "HASH=$(ls -lR | xargs | md5sum | cut -d\ -f1)" >> $GITHUB_OUTPUT
2222 - id : get_image
23- run : echo "$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):${{ steps.get_hash.outputs.HASH }}"
23+ run : echo "IMAGE= $(echo ghcr.io/ ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):${{ steps.get_hash.outputs.HASH }}" >> $GITHUB_OUTPUT
2424 # build container image for package creation
2525 - 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 .
2626 - run : docker push ${{ env.cr_image }}:${{ steps.get_hash.outputs.HASH }}
3030 needs : build-image
3131 container :
3232 # image: ${{ env.cr_image }}:${{ needs.build-image.outputs.image_tag }}
33- image : ghcr.io/henriwahl/checkmk-agent-plugin-yum/build: ${{ needs.build-image.outputs.image_tag }}
33+ image : ${{ needs.build-image.outputs.image }}
3434 steps :
3535 - run : ls
3636
You can’t perform that action at this time.
0 commit comments