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 1d807eb commit 9ffdd60
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy_to_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
docker login -u vincue -p ${{ secrets.DOCKER_TOKEN }}
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 build -t $REGISTRY/$REPOSITORY:$TAGNAME .
docker push $REGISTRY/$REPOSITORY
echo "::set-output name=image::$REGISTRY/$REPOSITORY:$IMAGE_TAG"
Expand All @@ -58,7 +58,7 @@ jobs:
docker login -u vincue -p ${{ secrets.DOCKER_TOKEN }}
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 build -t $REGISTRY/$REPOSITORY:$TAGNAME .
docker push $REGISTRY/$REPOSITORY
echo "::set-output name=image::$REGISTRY/$REPOSITORY:$IMAGE_TAG"
Expand All @@ -83,11 +83,8 @@ jobs:
docker login -u vincue -p ${{ secrets.DOCKER_TOKEN }}
echo ${{ github.event_name }}
TAGNAME=latest
echo $TAGNAME
export 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 build -t $REGISTRY/$REPOSITORY:$TAGNAME .
docker push $REGISTRY/$REPOSITORY
echo "::set-output name=image::$REGISTRY/$REPOSITORY:$IMAGE_TAG"
echo ${{ github.event.inputs.tagName }}

0 comments on commit 9ffdd60

Please sign in to comment.