diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aed717d..1f66a94 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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" \ No newline at end of file + 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" \ No newline at end of file