diff --git a/.github/workflows/continuous_delivery.yml b/.github/workflows/continuous_delivery.yml index ff590907..4b763cf2 100644 --- a/.github/workflows/continuous_delivery.yml +++ b/.github/workflows/continuous_delivery.yml @@ -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 \ No newline at end of file