Skip to content

Commit

Permalink
no backslash in GH Action run
Browse files Browse the repository at this point in the history
  • Loading branch information
loganpowell committed Oct 30, 2023
1 parent e8c2e71 commit ae844ed
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
id: build_image_step
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: micro-test
IMAGE_TAG: ${{ github.sha }}
ECR_RGTR: ${{ steps.login-ecr.outputs.registry }}
ECR_REPO: micro-test
IMG_TAG: ${{ github.sha }}
run: |
docker build --build-arg \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
-t $ECR_REGISTRY/$ECR_REPOSITORY:latest ./src/docker
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
echo "::set-output name=image_tag::$IMAGE_TAG"
docker build --build-arg -t $ECR_RGTR/$ECR_REPO:$IMG_TAG -t $ECR_RGTR/$ECR_REPO:latest ./src/docker
docker push $ECR_RGTR/$ECR_REPO:$IMG_TAG
docker push $ECR_RGTR/$ECR_REPO:latest
echo "::set-output name=image_tag::$IMG_TAG"

0 comments on commit ae844ed

Please sign in to comment.