From a7e16779490b6f2dcdb5942ff3691f6971355b21 Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro Date: Sun, 21 Sep 2025 22:58:05 -0300 Subject: [PATCH] fix: builde de release --- .gitea/workflows/deploy-bcards.yml | 4 ++-- deploy/docker-stack.release.yml | 4 ++-- scripts/deploy-release.sh | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/deploy-bcards.yml b/.gitea/workflows/deploy-bcards.yml index 7cb8718..68e3c91 100644 --- a/.gitea/workflows/deploy-bcards.yml +++ b/.gitea/workflows/deploy-bcards.yml @@ -116,13 +116,13 @@ jobs: echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT echo "deploy_target=production" >> $GITHUB_OUTPUT elif [[ "$BRANCH_NAME" == Release/* ]]; then - # Release = Staging (x86) + # Release = Swarm tests (Orange Pi arm64) VERSION_RAW=${BRANCH_NAME#Release/} VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]//') [ -z "$VERSION" ] && VERSION="0.0.1" echo "tag=$VERSION" >> $GITHUB_OUTPUT - echo "platform=linux/amd64" >> $GITHUB_OUTPUT + echo "platform=linux/arm64" >> $GITHUB_OUTPUT echo "environment=Testing" >> $GITHUB_OUTPUT echo "dockerfile=Dockerfile.release" >> $GITHUB_OUTPUT echo "deploy_target=testing" >> $GITHUB_OUTPUT diff --git a/deploy/docker-stack.release.yml b/deploy/docker-stack.release.yml index 3e06b54..0a7f746 100644 --- a/deploy/docker-stack.release.yml +++ b/deploy/docker-stack.release.yml @@ -22,9 +22,9 @@ services: ASPNETCORE_ENVIRONMENT: Release ASPNETCORE_URLS: http://+:8080 ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true" - MongoDb__ConnectionString: mongodb://192.168.0.100:27017/BCardsDB + MongoDb__ConnectionString: mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/BCardsDB?replicaSet=rs0&authSource=admin MongoDb__DatabaseName: BCardsDB - DataProtection__Mongo__ConnectionString: mongodb://192.168.0.100:27017/BCardsDB + DataProtection__Mongo__ConnectionString: mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/BCardsDB?replicaSet=rs0&authSource=admin DataProtection__Mongo__DatabaseName: BCardsDB DataProtection__Mongo__CollectionName: DataProtectionKeys Serilog__OpenSearchUrl: http://141.148.162.114:19201 diff --git a/scripts/deploy-release.sh b/scripts/deploy-release.sh index b11206e..298f218 100644 --- a/scripts/deploy-release.sh +++ b/scripts/deploy-release.sh @@ -193,11 +193,11 @@ deploy_new_version() { cp "$PROJECT_ROOT/$DOCKER_COMPOSE_FILE" "$DEPLOY_DIR/" # Create/update environment file - cat > "$DEPLOY_DIR/.env" << EOF -IMAGE_TAG=$image_tag -REGISTRY=registry.redecarneir.us -MONGODB_CONNECTION_STRING=mongodb://192.168.0.100:27017/BCardsDB -ASPNETCORE_ENVIRONMENT=Release + cat > "$DEPLOY_DIR/.env" << EOF +IMAGE_TAG=$image_tag +REGISTRY=registry.redecarneir.us +MONGODB_CONNECTION_STRING=mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/BCardsDB?replicaSet=rs0&authSource=admin +ASPNETCORE_ENVIRONMENT=Release CERT_PASSWORD= EOF @@ -366,4 +366,4 @@ main() { } # Run main function with all arguments -main "$@" \ No newline at end of file +main "$@"