Skip to content

Commit

Permalink
ci: fix taggging script
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Nov 29, 2023
1 parent bf0083a commit 07abefb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,17 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker / Publish to GitHub Registry
run:
run: |
git_tag=${{ github.ref_name }}
last_git_sha=$(git log --pretty=format:'%h' HEAD -1)
source_image_name=${{ steps.dockerImageName.outputs.dockerImageName }}
echo "Using git tag $git_tag"
echo "Using last git sha $last_git_sha"
echo "Context's github.sha = ${{ github.sha }}"
echo "Images to tag => $source_image_name:$git_tag"
echo "Images to tag => $source_image_name:$last_git_sha"
docker tag "$source_image_name" "$source_image_name:$git_tag"
docker tag "$source_image_name" "$source_image_name:$last_git_sha"
Expand Down

0 comments on commit 07abefb

Please sign in to comment.