Skip to content

Commit

Permalink
add git tag also to ECR dev
Browse files Browse the repository at this point in the history
  • Loading branch information
micdes-pagopa committed Sep 15, 2023
1 parent 830388e commit b44a3d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,19 @@ jobs:
echo "Pulling from DEV..."
docker pull "${APP_IMAGE_COMMIT_DEV}"
echo "Retagging..."
echo "Adding Git tag to DEV image in ECR DEV..."
docker tag "${APP_IMAGE_COMMIT_DEV}" "${APP_ECR_REPO_DEV}:${{ github.ref_name }}"
echo "Pushing to ECR DEV..."
docker push -a "${APP_ECR_REPO_DEV}"
echo "Retagging for TEST ECR..."
docker tag "${APP_IMAGE_COMMIT_DEV}" "${APP_IMAGE_COMMIT_TEST}"
docker tag "${APP_IMAGE_COMMIT_TEST}" "${APP_ECR_REPO_TEST}:${{ github.ref_name }}"
echo "Pushing to TEST..."
echo "Pushing to ECR TEST..."
docker push -a "${APP_ECR_REPO_TEST}"

0 comments on commit b44a3d6

Please sign in to comment.