Skip to content

Commit

Permalink
test push with secret env name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Nov 13, 2023
1 parent 313a527 commit 10dd783
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/publish-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,24 +119,22 @@ jobs:
ECR_REPOSITORY: api
IMAGE_TAG: ${{ secrets[env.ENV_NAME] }}
run: |
printenv | grep IMAGE_TAG
# run: |
# docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
# -t europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:${{ github.sha }} \
# -t europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:latest \
# api
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
-t europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:${{ github.sha }} \
-t europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:latest \
api
- name: Push API Docker image to AWS and GCP
env:
ECR_REGISTRY: ${{ steps.ecr-login.outputs.registry }}
ECR_REPOSITORY: api
IMAGE_TAG: ${{ secrets[env.ENV_NAME] }}
# run: |
# printenv | grep IMAGE_TAG
run: |
printenv | grep IMAGE_TAG
# run: |
# docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
# docker push europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:${{ github.sha }}
# docker push europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:${{ github.sha }}
docker push europe-west1-docker.pkg.dev/${{ env.PROJECT_ID }}/api/main:latest
# push_client_to_registry:
# name: Push Client Docker image to Docker Hub
Expand Down

0 comments on commit 10dd783

Please sign in to comment.