Skip to content

Commit

Permalink
Merge pull request #1704 from mscherer/fix_ci_tagging
Browse files Browse the repository at this point in the history
Correctly tag the images
  • Loading branch information
sgoggins authored Apr 7, 2022
2 parents a08f090 + 8972c98 commit e5db2b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
echo "Building $CONTAINER"
export IMAGE=$LOGIN/augur_$CONTAINER
DOCKERFILE=${i}/Dockerfile
TAG=$GITHUB_SHA
docker build . -f $DOCKERFILE --tag $REGISTRY/$IMAGE:$TAG --tag $REGISTRY/$IMAGE:latest
docker build . -f $DOCKERFILE --tag $REGISTRY/$IMAGE:latest
if [[ $GITHUB_EVENT_NAME == 'release' ]]; then
TAG=$(basename $GITHUB_REF)
docker tag $REGISTRY/$IMAGE:latest $REGISTRY/$IMAGE:$TAG
docker push $REGISTRY/$IMAGE:latest
docker push $REGISTRY/$IMAGE:$TAG
elif [[ $GITHUB_EVENT_NAME == 'push' ]]; then
docker push $REGISTRY/$IMAGE-devel:latest
docker tag $REGISTRY/$IMAGE:latest $REGISTRY/$IMAGE:devel-latest
docker push $REGISTRY/$IMAGE:devel-latest
fi
fi
done
Expand Down

0 comments on commit e5db2b2

Please sign in to comment.