We don't need tags when building.

This commit is contained in:
Abhilash Raj
2018-07-05 14:23:23 -07:00
committed by Abhilash Raj
parent bbcce81bc9
commit 0bbd4aadc7
2 changed files with 4 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ deploy() {
docker tag maxking/mailman-web "$URL/maxking/mailman-web:$TAG" docker tag maxking/mailman-web "$URL/maxking/mailman-web:$TAG"
docker tag maxking/postorius "$URL/maxking/postorius:$TAG" docker tag maxking/postorius "$URL/maxking/postorius:$TAG"
# Login to the registry and push. # Login to the registry and push.
docker login -u $USER -p ${!PASSWORD} $URL docker login -u "$USER" -p "${PASSWORD}" "$URL"
docker push "$URL/maxking/mailman-web:$TAG" docker push "$URL/maxking/mailman-web:$TAG"
docker push "$URL/maxking/mailman-core:$TAG" docker push "$URL/maxking/mailman-core:$TAG"
docker push "$URL/maxking/postorius:$TAG" docker push "$URL/maxking/postorius:$TAG"

View File

@@ -10,7 +10,6 @@ if [ "$1" = "dev" ]; then
fi fi
REG_URL=${REGISTRY}_URL REG_URL=${REGISTRY}_URL
: "${TAG:=0.1}"
if [ "$EVENT_TYPE" = "cron" ] || [ "$DEV" = "true" ]; then if [ "$EVENT_TYPE" = "cron" ] || [ "$DEV" = "true" ]; then
python3 -m venv venv python3 -m venv venv
@@ -58,7 +57,7 @@ if [ "$EVENT_TYPE" = "cron" ] || [ "$DEV" = "true" ]; then
-t maxking/postorius:rolling postorius/ -t maxking/postorius:rolling postorius/
else else
# Do the normal building process. # Do the normal building process.
$DOCKER build -t maxking/mailman-core:$TAG core/ $DOCKER build -t maxking/mailman-core core/
$DOCKER build -t maxking/mailman-web:$TAG web/ $DOCKER build -t maxking/mailman-web web/
$DOCKER build -t maxking/postorius:$TAG postorius/ $DOCKER build -t maxking/postorius postorius/
fi fi