Skip to content

Commit

Permalink
Tag version should be the same as Cargo.toml version
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone committed Feb 15, 2022
1 parent fc889e4 commit 06045bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ echo "building ${IMAGE_NAME}"

source /etc/profile.d/ecs-credentials-endpoint

version=$(grep -m1 version Cargo.toml | cut -d'"' -f2)

if [[ "$DRONE_TAG" != "$version" ]] ; then
echo "Package version $version does not match release version $DRONE_TAG"
exit 1
fi

docker build -t "${IMAGE_NAME}" -f Dockerfile_localauth0 "${DOCKERFILE_PATH}"
docker push "${IMAGE_NAME}"

0 comments on commit 06045bb

Please sign in to comment.