fix: builde de release
Some checks failed
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Blocked by required conditions
BCards Deployment Pipeline / Deploy to Release Swarm (ARM) (push) Blocked by required conditions
BCards Deployment Pipeline / Cleanup Old Resources (push) Blocked by required conditions
BCards Deployment Pipeline / Deployment Summary (push) Blocked by required conditions
BCards Deployment Pipeline / Run Tests (push) Successful in 2s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Failing after 3h6m11s
Some checks failed
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Blocked by required conditions
BCards Deployment Pipeline / Deploy to Release Swarm (ARM) (push) Blocked by required conditions
BCards Deployment Pipeline / Cleanup Old Resources (push) Blocked by required conditions
BCards Deployment Pipeline / Deployment Summary (push) Blocked by required conditions
BCards Deployment Pipeline / Run Tests (push) Successful in 2s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Failing after 3h6m11s
This commit is contained in:
parent
b0d164c8a9
commit
a7e1677949
@ -116,13 +116,13 @@ jobs:
|
|||||||
echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT
|
echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT
|
||||||
echo "deploy_target=production" >> $GITHUB_OUTPUT
|
echo "deploy_target=production" >> $GITHUB_OUTPUT
|
||||||
elif [[ "$BRANCH_NAME" == Release/* ]]; then
|
elif [[ "$BRANCH_NAME" == Release/* ]]; then
|
||||||
# Release = Staging (x86)
|
# Release = Swarm tests (Orange Pi arm64)
|
||||||
VERSION_RAW=${BRANCH_NAME#Release/}
|
VERSION_RAW=${BRANCH_NAME#Release/}
|
||||||
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]//')
|
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]//')
|
||||||
[ -z "$VERSION" ] && VERSION="0.0.1"
|
[ -z "$VERSION" ] && VERSION="0.0.1"
|
||||||
|
|
||||||
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "platform=linux/amd64" >> $GITHUB_OUTPUT
|
echo "platform=linux/arm64" >> $GITHUB_OUTPUT
|
||||||
echo "environment=Testing" >> $GITHUB_OUTPUT
|
echo "environment=Testing" >> $GITHUB_OUTPUT
|
||||||
echo "dockerfile=Dockerfile.release" >> $GITHUB_OUTPUT
|
echo "dockerfile=Dockerfile.release" >> $GITHUB_OUTPUT
|
||||||
echo "deploy_target=testing" >> $GITHUB_OUTPUT
|
echo "deploy_target=testing" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
@ -22,9 +22,9 @@ services:
|
|||||||
ASPNETCORE_ENVIRONMENT: Release
|
ASPNETCORE_ENVIRONMENT: Release
|
||||||
ASPNETCORE_URLS: http://+:8080
|
ASPNETCORE_URLS: http://+:8080
|
||||||
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
|
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
|
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__DatabaseName: BCardsDB
|
||||||
DataProtection__Mongo__CollectionName: DataProtectionKeys
|
DataProtection__Mongo__CollectionName: DataProtectionKeys
|
||||||
Serilog__OpenSearchUrl: http://141.148.162.114:19201
|
Serilog__OpenSearchUrl: http://141.148.162.114:19201
|
||||||
|
|||||||
@ -193,11 +193,11 @@ deploy_new_version() {
|
|||||||
cp "$PROJECT_ROOT/$DOCKER_COMPOSE_FILE" "$DEPLOY_DIR/"
|
cp "$PROJECT_ROOT/$DOCKER_COMPOSE_FILE" "$DEPLOY_DIR/"
|
||||||
|
|
||||||
# Create/update environment file
|
# Create/update environment file
|
||||||
cat > "$DEPLOY_DIR/.env" << EOF
|
cat > "$DEPLOY_DIR/.env" << EOF
|
||||||
IMAGE_TAG=$image_tag
|
IMAGE_TAG=$image_tag
|
||||||
REGISTRY=registry.redecarneir.us
|
REGISTRY=registry.redecarneir.us
|
||||||
MONGODB_CONNECTION_STRING=mongodb://192.168.0.100:27017/BCardsDB
|
MONGODB_CONNECTION_STRING=mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/BCardsDB?replicaSet=rs0&authSource=admin
|
||||||
ASPNETCORE_ENVIRONMENT=Release
|
ASPNETCORE_ENVIRONMENT=Release
|
||||||
CERT_PASSWORD=
|
CERT_PASSWORD=
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -366,4 +366,4 @@ main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Run main function with all arguments
|
# Run main function with all arguments
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user