mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add canary builds for testing purposes
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
#!/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 build --platform linux/amd64 --pull --rm -f 'Dockerfile' -t "dokploy/dokploy:${VERSION}" .
|
||||
if [ "$BUILD_TYPE" == "canary" ]; then
|
||||
TAG="canary"
|
||||
else
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
TAG="$VERSION"
|
||||
fi
|
||||
|
||||
docker tag "dokploy/dokploy:${VERSION}" "dokploy/dokploy:latest"
|
||||
docker build --platform linux/amd64 --pull --rm -f 'Dockerfile' -t "dokploy/dokploy:${TAG}" .
|
||||
|
||||
if [ "$BUILD_TYPE" != "canary" ]; then
|
||||
# Tag the production build as latest
|
||||
docker tag "dokploy/dokploy:${TAG}" "dokploy/dokploy:latest"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user