Add apps/demo-nginx/.env
This commit is contained in:
69
apps/demo-nginx/.env
Normal file
69
apps/demo-nginx/.env
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
############################################
|
||||||
|
# Application
|
||||||
|
############################################
|
||||||
|
APP_NAME=demo-nginx
|
||||||
|
NAMESPACE=demo-app
|
||||||
|
BRANCH_NAME=main
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Docker
|
||||||
|
############################################
|
||||||
|
DOCKER_REGISTRY=docker.io
|
||||||
|
DOCKER_REPO=vladcrypto
|
||||||
|
# IMAGE_TAG is computed in Jenkins as: ${BRANCH_NAME}-${BUILD_NUMBER}
|
||||||
|
# Example: main-100
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# GitOps / Gitea
|
||||||
|
############################################
|
||||||
|
GITEA_URL=http://gitea-http.gitea.svc.cluster.local:3000
|
||||||
|
GITEA_REPO=admin/k3s-gitops
|
||||||
|
GITEA_BRANCH=main
|
||||||
|
GITOPS_MANIFEST_PATH=apps/demo-nginx/deployment.yaml
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# ArgoCD
|
||||||
|
############################################
|
||||||
|
ARGOCD_APP_NAME=demo-nginx
|
||||||
|
ARGOCD_NAMESPACE=argocd
|
||||||
|
ARGOCD_SYNC_TIMEOUT=120 # seconds
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Deployment / Rollout
|
||||||
|
############################################
|
||||||
|
DEPLOYMENT_TIMEOUT=300s
|
||||||
|
SKIP_HEALTH_CHECK=true
|
||||||
|
ROLLBACK_ENABLED=false # GitOps-safe: Jenkins never reverts Git
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Jenkins Runtime (injected by Jenkins)
|
||||||
|
############################################
|
||||||
|
# BUILD_NUMBER=100
|
||||||
|
# BUILD_URL=https://jenkins.thedevops.dev/job/demo-nginx/job/main/100/
|
||||||
|
# BUILD_USER=jenkins
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Telegram Notifications
|
||||||
|
############################################
|
||||||
|
TELEGRAM_BOT_TOKEN=__REPLACE_ME__
|
||||||
|
TELEGRAM_CHAT_ID=__REPLACE_ME__
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Docker Hub Credentials
|
||||||
|
############################################
|
||||||
|
DOCKER_USER=__REPLACE_ME__
|
||||||
|
DOCKER_PASS=__REPLACE_ME__
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Gitea Credentials
|
||||||
|
############################################
|
||||||
|
GIT_USER=__REPLACE_ME__
|
||||||
|
GIT_PASS=__REPLACE_ME__
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Internal / Temporary Files (used by pipeline)
|
||||||
|
############################################
|
||||||
|
PREVIOUS_IMAGE_FILE=/tmp/previous_image_${BUILD_NUMBER}.txt
|
||||||
|
PREVIOUS_REPLICAS_FILE=/tmp/previous_replicas_${BUILD_NUMBER}.txt
|
||||||
|
PREVIOUS_COMMIT_FILE=/tmp/previous_commit_${BUILD_NUMBER}.txt
|
||||||
|
EXPECTED_COMMIT_FILE=/tmp/expected_commit_${BUILD_NUMBER}.txt
|
||||||
Reference in New Issue
Block a user