feat: add canary builds for testing purposes

This commit is contained in:
Mauricio Siu
2024-05-01 19:44:41 -06:00
parent 04a2ca49f3
commit 63b5fdaa71
6 changed files with 126 additions and 9 deletions

View File

@@ -1,6 +1,15 @@
#!/bin/bash
VERSION=$(node -p "require('./package.json').version")
# Determine the type of build based on the first script argument
BUILD_TYPE=${1:-production}
docker push "dokploy/dokploy:${VERSION}"
docker push "dokploy/dokploy:latest"
if [ "$BUILD_TYPE" == "canary" ]; then
TAG="canary"
echo PUSHING CANARY
docker push "dokploy/dokploy:${TAG}"
else
echo "PUSHING PRODUCTION"
VERSION=$(node -p "require('./package.json').version")
docker push "dokploy/dokploy:${VERSION}"
docker push "dokploy/dokploy:latest"
fi