Commit b7d40ce9 authored by Jason Robinson's avatar Jason Robinson

Add possibility to set tag in docker release script

parent 987a86d4
Pipeline #1306 passed with stage
in 5 minutes and 8 seconds
......@@ -17,3 +17,10 @@ bower_components/
socialhome/static/mocha/
/docs/_build/
/yarn.lock
docker_release.sh
docker-compose.yml
package-lock.json
.env
.tox
.pytest_cache
/var/exports
......@@ -66,6 +66,7 @@ ENV DJANGO_DEBUG False
ENV DJANGO_ACCOUNT_ALLOW_REGISTRATION=False
ENV DJANGO_ALLOWED_HOSTS socialhome.local
ENV DBHOST=db
ENV SOCIALHOME_ACTIVITYPUB_ALPHA=False
ENV SOCIALHOME_RELAY_SCOPE=all
CMD circusd /app/config/circus.ini
#!/usr/bin/env bash
#####################
# Release to Docker #
#####################
#
# Builds the image and pushes it to Docker Hub.
#
# Args: tag name, defaults to "latest"
#
set -e
if [[ -z "$1" ]]; then
tag=latest
else
tag=$1
fi
docker login
docker build -f docker/app/Dockerfile -t jaywink/socialhome .
docker push jaywink/socialhome:latest
docker build -f docker/app/Dockerfile -t jaywink/socialhome:${tag} .
docker push jaywink/socialhome:${tag}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment