copied the code from the working repo

This commit is contained in:
2024-11-30 16:00:48 +03:00
parent f22b92869b
commit 15ac0cb9b8
148 changed files with 23342 additions and 0 deletions

33
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,33 @@
pipeline {
agent any
environment {
PROD_ENV = credentials('prod_env')
DEV_ENV = credentials('dev_env')
}
stages {
stage('Build') {
steps {
withCredentials([file(credentialsId: 'dev_env', variable: 'DEV_ENV_FILE')]) {
sh 'rm -f ${WORKSPACE}/.env'
sh 'cp ${DEV_ENV_FILE} ./.env'
}
sh 'docker compose build'
}
}
stage('Deploy for development') {
agent { node { label "dev" } }
when {
branch 'dev'
}
steps {
sh 'docker compose up -d'
}
}
}
}