From 6e4de329ee9498f7ad3f309101ebf30630252adf Mon Sep 17 00:00:00 2001 From: azlam-abdulsalam Date: Sat, 2 Mar 2024 12:06:34 +1100 Subject: [PATCH] fix(cicd): fix digest action name and split it before tag --- .github/actions/copyDocker/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/copyDocker/action.yml b/.github/actions/copyDocker/action.yml index 6a9065e75..be6ed48d2 100644 --- a/.github/actions/copyDocker/action.yml +++ b/.github/actions/copyDocker/action.yml @@ -30,7 +30,7 @@ inputs: outputs: digest: description: "digest of the image" - value: ${{ steps.tag-image.outputs.alias }} + value: ${{ steps.copy-image.outputs.alias }} runs: using: "composite" @@ -38,7 +38,7 @@ runs: - uses: actions/setup-go@v2 with: - go-version: 1.15 + go-version: c1.15 - uses: imjasonh/setup-crane@v0.1 @@ -48,7 +48,8 @@ runs: run: | echo "${{ inputs.token }}" | crane auth login ${{ inputs.registry }} --username ${{ inputs.username }} --password-stdin crane cp ${{ inputs.registry }}/${{ inputs.repo }}/${{ inputs.image }}:${{ inputs.tag }} ${{ inputs.registry }}/${{ inputs.repo}}/${{ inputs.image-as }}:${{ inputs.with-tag }} - DIGEST=$(crane digest ${{ inputs.registry }}/${{ inputs.repo }}/${{ inputs.image-as }}:${{ inputs.with-tag }}) + FULL_DIGEST=$(crane digest ${{ inputs.registry }}/${{ inputs.repo }}/${{ inputs.image-as }}:${{ inputs.with-tag }}) + DIGEST=${FULL_DIGEST#*:} echo "DIGEST=$DIGEST" >> "$GITHUB_OUTPUT"