Skip to content

Commit

Permalink
fix(cicd): fix digest action name and split it before tag
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Mar 2, 2024
1 parent f3c4361 commit 6e4de32
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/copyDocker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ inputs:
outputs:
digest:
description: "digest of the image"
value: ${{ steps.tag-image.outputs.alias }}
value: ${{ steps.copy-image.outputs.alias }}

runs:
using: "composite"
steps:

- uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: c1.15

- uses: imjasonh/setup-crane@v0.1

Expand All @@ -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"
Expand Down

0 comments on commit 6e4de32

Please sign in to comment.