feat: update all services to tag images with release or dev+hash
docs: mention version-tagging
This commit is contained in:
parent
4719a9d64c
commit
e0a20dbe91
11 changed files with 19 additions and 14 deletions
|
@ -35,3 +35,8 @@ env:
|
|||
```
|
||||
|
||||
The `env.yml` file is ignored by version-control.
|
||||
|
||||
### Image versions
|
||||
|
||||
When building and starting images, images are tagged with either the release version (if on a commit that's tagged with
|
||||
a release) or a dev tag that includes the hash (i.e. `dev-<commit-hash>`).
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
source constants.sh
|
||||
|
||||
docker build -t $APP_IMAGE_NAME:dev -f Dockerfile-bastion-app .
|
||||
docker build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-bastion-app .
|
||||
|
|
|
@ -9,4 +9,4 @@ docker run \
|
|||
--network $NETWORK_NAME \
|
||||
--name $APP_CONTAINER_NAME \
|
||||
--env-file $ENV_FILE_DIR/bastion.env \
|
||||
$APP_IMAGE_NAME:dev
|
||||
$APP_IMAGE_NAME:$IMAGE_VERSION
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
source constants.sh
|
||||
|
||||
docker build -t $DB_IMAGE_NAME:dev -f Dockerfile-bitwarden-db .
|
||||
docker build -t $APP_IMAGE_NAME:dev -f Dockerfile-bitwarden-app .
|
||||
docker build -t $DB_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-bitwarden-db .
|
||||
docker build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-bitwarden-app .
|
||||
|
|
|
@ -10,7 +10,7 @@ docker run \
|
|||
--name $DB_CONTAINER_NAME \
|
||||
--env-file $ENV_FILE_DIR/bitwarden-db.env \
|
||||
--mount type=bind,source=$APP_DATA_DIR/bitwarden/db,target=/var/lib/mysql \
|
||||
$DB_IMAGE_NAME:dev
|
||||
$DB_IMAGE_NAME:$IMAGE_VERSION
|
||||
|
||||
docker run \
|
||||
--detach \
|
||||
|
@ -20,4 +20,4 @@ docker run \
|
|||
--publish 8080:8080 \
|
||||
--mount type=bind,source=$APP_DATA_DIR/bitwarden/config,target=/etc/bitwarden \
|
||||
--mount type=bind,source=$APP_DATA_DIR/bitwarden/logs,target=/var/log/bitwarden \
|
||||
$APP_IMAGE_NAME:dev
|
||||
$APP_IMAGE_NAME:$IMAGE_VERSION
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
source constants.sh
|
||||
|
||||
docker build -t $DB_IMAGE_NAME:dev -f Dockerfile-bookstack-db .
|
||||
docker build -t $APP_IMAGE_NAME:dev -f Dockerfile-bookstack-app .
|
||||
docker build -t $DB_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-bookstack-db .
|
||||
docker build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-bookstack-app .
|
||||
|
|
|
@ -10,7 +10,7 @@ docker run \
|
|||
--name $DB_CONTAINER_NAME \
|
||||
--env-file $ENV_FILE_DIR/bookstack-db.env \
|
||||
--mount type=bind,source=$APP_DATA_DIR/bookstack-db,target=/var/lib/mysql \
|
||||
$DB_IMAGE_NAME:dev
|
||||
$DB_IMAGE_NAME:$IMAGE_VERSION
|
||||
|
||||
docker run \
|
||||
--detach \
|
||||
|
@ -19,4 +19,4 @@ docker run \
|
|||
--env-file $ENV_FILE_DIR/bookstack-app.env \
|
||||
--publish 6875:80 \
|
||||
--mount type=bind,source=$APP_DATA_DIR/bookstack-app,target=/config \
|
||||
$APP_IMAGE_NAME:dev
|
||||
$APP_IMAGE_NAME:$IMAGE_VERSION
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
source constants.sh
|
||||
|
||||
docker build -t $APP_IMAGE_NAME:dev -f Dockerfile-deluge-app .
|
||||
docker build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-deluge-app .
|
||||
|
|
|
@ -15,4 +15,4 @@ docker run \
|
|||
--mount type=bind,source=$APP_DATA_DIR/deluge/config,target=/config \
|
||||
--mount type=bind,source=$APP_DATA_DIR/deluge/downloads,target=/downloads \
|
||||
--mount type=bind,source=$STORAGE_DIR,target=/complete \
|
||||
$APP_IMAGE_NAME:dev
|
||||
$APP_IMAGE_NAME:$IMAGE_VERSION
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
source constants.sh
|
||||
|
||||
docker build -t $APP_IMAGE_NAME:dev -f Dockerfile-plex-app .
|
||||
docker build -t $APP_IMAGE_NAME:$IMAGE_VERSION -f Dockerfile-plex-app .
|
||||
|
|
|
@ -21,4 +21,4 @@ docker run \
|
|||
--mount type=bind,source=$APP_DATA_DIR/plex/database,target=/config \
|
||||
--mount type=bind,source=$APP_DATA_DIR/plex/transcode,target=/transcode \
|
||||
--mount type=bind,source=$STORAGE_DIR/media,target=/data \
|
||||
$APP_IMAGE_NAME:dev
|
||||
$APP_IMAGE_NAME:$IMAGE_VERSION
|
||||
|
|
Reference in a new issue