Skip to content

New Release

When creating a new release, there are a few things to remember

To create a new version

  • Change the version number in the package.json file
  • Update the CHANGELOG.md with all the changes
  • Create a pull request in the Github Repo

Deploying the new version

  • SSH into the machine
  • run docker pull <registry>/<tagName>
  • run docker compose up -d --force-recreate

OR

Use the file pullLatestAndRecreate.sh

View contents
bash
#!/bin/bash

ENV_FILE="./.env"
if [ -f "$ENV_FILE" ]; then
    export $(grep -v '^#' $ENV_FILE | xargs -d '\r')
else
    echo ".env file does not exist"
    exit
fi

echo "registry: $DOCKER_REGISTRY"
echo "tag name: $DOCKER_TAG_NAME"

# ----------------------------------------------------------------------

docker pull $DOCKER_REGISTRY/$DOCKER_TAG_NAME:latest

docker compose up -d --force-recreate

Released under the GNU General Public License v3.0.