Skip to content

Commit

Permalink
ci: strip first 'v' from tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
toindev committed Dec 18, 2024
1 parent 49694c9 commit 47a7c4c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/continuous_delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ jobs:
- name: docker login and push
run: |
docker pull ghcr.io/fulll/gotenberg/gotenberg:${{ github.event.release.tag_name }}-cloudrun
docker tag ghcr.io/fulll/gotenberg/gotenberg:${{ github.event.release.tag_name }}-cloudrun 285715278780.dkr.ecr.eu-central-1.amazonaws.com/gotenberg:${{ github.event.release.tag_name }}-cloudrun
# Extract the tag name and strip the first letter using cut
TAG_NAME=$(echo "${{ github.event.release.tag_name }}" | cut -c 2-)
docker pull ghcr.io/fulll/gotenberg/gotenberg:${TAG_NAME}-cloudrun
docker tag ghcr.io/fulll/gotenberg/gotenberg:${TAG_NAME}-cloudrun 285715278780.dkr.ecr.eu-central-1.amazonaws.com/gotenberg:${TAG_NAME}-cloudrun
aws --region eu-central-1 ecr get-login-password | docker login --username AWS --password-stdin 285715278780.dkr.ecr.eu-central-1.amazonaws.com
docker push 285715278780.dkr.ecr.eu-central-1.amazonaws.com/gotenberg-fulll:${{ github.event.release.tag_name }}-cloudrun
docker push 285715278780.dkr.ecr.eu-central-1.amazonaws.com/gotenberg-fulll:${TAG_NAME}-cloudrun

0 comments on commit 47a7c4c

Please # to comment.