Skip to content

Commit

Permalink
fix: added push all tag flag (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
MXPOL authored Dec 3, 2023
1 parent 0b7ba02 commit 699d092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
docker tag $IMAGE_NAME $PUBLIC_ECR_URL/$IMAGE_NAME:sha-${GITHUB_SHA}
echo "Pushing image to ECR..."
docker push $PUBLIC_ECR_URL/$IMAGE_NAME
docker push $PUBLIC_ECR_URL/$IMAGE_NAME --all-tags
echo "Pushing image to ECR with following tags:"
echo "::set-output name=image::$PUBLIC_ECR_URL/$IMAGE_NAME:$IMAGE_TAG"
Expand All @@ -104,7 +104,7 @@ jobs:
docker tag $IMAGE_NAME $DOCKERHUB_REPOSITORY/$IMAGE_NAME:sha-${GITHUB_SHA}
echo "Pushing image to Docker Hub..."
docker push $DOCKERHUB_REPOSITORY/$IMAGE_NAME
docker push $DOCKERHUB_REPOSITORY/$IMAGE_NAME --all-tags
echo "Pushing image to Docker Hub with following tags:"
echo "::set-output name=image::$DOCKERHUB_REPOSITORY/$IMAGE_NAME:$IMAGE_TAG"
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
docker tag $IMAGE_NAME gcr.io/$GCP_PROJECT_ID/$CONTAINER_REGISTRY_FOLDER:sha-${GITHUB_SHA}
echo "Pushing image to GCP container registry..."
docker push gcr.io/$GCP_PROJECT_ID/$CONTAINER_REGISTRY_FOLDER
docker push gcr.io/$GCP_PROJECT_ID/$CONTAINER_REGISTRY_FOLDER --all-tags
echo "Pushing image to GCP container registry with following tags:"
echo "::set-output name=image::gcr.io/$GCP_PROJECT_ID/$CONTAINER_REGISTRY_FOLDER:$IMAGE_TAG"
Expand Down

0 comments on commit 699d092

Please sign in to comment.