We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6640939 commit 3fb62bdCopy full SHA for 3fb62bd
.github/workflows/aws-backend-deploy.yml
@@ -32,7 +32,7 @@ jobs:
32
run: |
33
if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
34
INPUT_ENV=${{ github.event.inputs.env }}; INPUT_REF=${{ github.event.inputs.ref }}
35
- echo AWS_APPENV="$AWS_APP_NAME"-$INPUT_ENV >> $GITHUB_ENV
+ echo AWS_APPENV=$AWS_APP_NAME >> $GITHUB_ENV
36
echo IMAGE_TAG=$(git rev-parse --short HEAD) >> $GITHUB_ENV
37
echo BUILD_SHA=$(git rev-parse --short HEAD) >> $GITHUB_ENV
38
fi
@@ -87,7 +87,7 @@ jobs:
87
--push \
88
--build-arg BUILD_SHA=$BUILD_SHA \
89
-f ${{ env.DOCKERFILE }} \
90
- -t $ECR_REGISTRY/$ECR_REPOSITORY:latest \
+ -t $ECR_REGISTRY/$ECR_REPOSITORY:${{ github.event.inputs.env }} \
91
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
92
${{ env.DOCKER_PATH }}
93
deploy:
0 commit comments