Skip to content

Commit

Permalink
Workflow bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincue committed Oct 11, 2021
1 parent 5a89a32 commit 62a1dd0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy_to_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
# push it to ECR so that it can
# be deployed to ECS.
docker login -u vincue -p ${{ secrets.DOCKER_TOKEN }}
if [[ ${{ github.event_name == 'workflow_dispatch' }} ]]; then TAGNAME=${{ github.event.inputs.tagName }}; else TAGNAME="latest"; fi
TAGNAME=latest
if [[ ${{ github.event_name == 'workflow_dispatch' }} ]]; then TAGNAME=${{ github.event.inputs.tagName }}; fi
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -t $REGISTRY/$REPOSITORY:$TAGNAME .
docker push $REGISTRY/$REPOSITORY
echo "::set-output name=image::$REGISTRY/$REPOSITORY:$IMAGE_TAG"
Expand All @@ -55,7 +56,8 @@ jobs:
# push it to ECR so that it can
# be deployed to ECS.
docker login -u vincue -p ${{ secrets.DOCKER_TOKEN }}
if [[ ${{ github.event_name == 'workflow_dispatch' }} ]]; then TAGNAME=${{ github.event.inputs.tagName }}; else TAGNAME="latest"; fi
TAGNAME=latest
if [[ ${{ github.event_name == 'workflow_dispatch' }} ]]; then TAGNAME=${{ github.event.inputs.tagName }}; fi
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -t $REGISTRY/$REPOSITORY:$TAGNAME .
docker push $REGISTRY/$REPOSITORY
echo "::set-output name=image::$REGISTRY/$REPOSITORY:$IMAGE_TAG"
Expand All @@ -80,7 +82,8 @@ jobs:
# be deployed to ECS.
docker login -u vincue -p ${{ secrets.DOCKER_TOKEN }}
echo ${{ github.event_name }}
if [[ ${{ github.event_name == 'workflow_dispatch' }} ]]; then TAGNAME=${{ github.event.inputs.tagName }}; else TAGNAME="latest"; fi
TAGNAME=latest
if [[ ${{ github.event_name == 'workflow_dispatch' }} ]]; then TAGNAME=${{ github.event.inputs.tagName }}; fi
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG -t $REGISTRY/$REPOSITORY:$TAGNAME .
docker push $REGISTRY/$REPOSITORY
echo "::set-output name=image::$REGISTRY/$REPOSITORY:$IMAGE_TAG"
Expand Down

0 comments on commit 62a1dd0

Please sign in to comment.