refactor(multi-server): add config

This commit is contained in:
Mauricio Siu
2024-09-22 17:18:07 -06:00
parent cb16de63df
commit 63d5b775e6

View File

@@ -15,9 +15,7 @@ jobs:
name: Build and push AMD64 image name: Build and push AMD64 image
command: | command: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_TOKEN docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_TOKEN
if [ "${CIRCLE_BRANCH}" == "139-multi-server-feature" ]; then if [ "${CIRCLE_BRANCH}" == "main" ]; then
TAG="feature"
elif [ "${CIRCLE_BRANCH}" == "main" ]; then
TAG="latest" TAG="latest"
else else
TAG="canary" TAG="canary"
@@ -40,9 +38,7 @@ jobs:
name: Build and push ARM64 image name: Build and push ARM64 image
command: | command: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_TOKEN docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_TOKEN
if [ "${CIRCLE_BRANCH}" == "139-multi-server-feature" ]; then if [ "${CIRCLE_BRANCH}" == "main" ]; then
TAG="feature"
elif [ "${CIRCLE_BRANCH}" == "main" ]; then
TAG="latest" TAG="latest"
else else
TAG="canary" TAG="canary"
@@ -75,12 +71,6 @@ jobs:
dokploy/dokploy:${TAG}-amd64 \ dokploy/dokploy:${TAG}-amd64 \
dokploy/dokploy:${TAG}-arm64 dokploy/dokploy:${TAG}-arm64
docker manifest push dokploy/dokploy:${VERSION} docker manifest push dokploy/dokploy:${VERSION}
elif [ "${CIRCLE_BRANCH}" == "139-multi-server-feature" ]; then
TAG="feature"
docker manifest create dokploy/dokploy:${TAG} \
dokploy/dokploy:${TAG}-amd64 \
dokploy/dokploy:${TAG}-arm64
docker manifest push dokploy/dokploy:${TAG}
else else
TAG="canary" TAG="canary"
docker manifest create dokploy/dokploy:${TAG} \ docker manifest create dokploy/dokploy:${TAG} \
@@ -98,14 +88,12 @@ workflows:
only: only:
- main - main
- canary - canary
- 139-multi-server-feature
- build-arm64: - build-arm64:
filters: filters:
branches: branches:
only: only:
- main - main
- canary - canary
- 139-multi-server-feature
- combine-manifests: - combine-manifests:
requires: requires:
- build-amd64 - build-amd64
@@ -115,4 +103,3 @@ workflows:
only: only:
- main - main
- canary - canary
- 139-multi-server-feature