diff --git a/.env b/.env deleted file mode 100644 index 70a1a5c..0000000 --- a/.env +++ /dev/null @@ -1,17 +0,0 @@ -SERVER_PORT=3000 -PORT=3000 -IMAGEPATH=./uploads -TTL=1 -DIKSHADEVBASEAPIURL=https://vdn.diksha.gov.in/action -HASURAURL=https://alt.uniteframework.io/hasura/v1/graphql -ADMINSECRET=4GeEB2JCU5rBdLvQ4AbeqqrPGu7kk9SZDhJUZm7A -ADAPTERSOURCE=hasura -REGISTYADAPTER=hasura -REGISTRYHASURA=https://alt.uniteframework.io/hasura/v1/graphql -REGISTRYHASURAADMINSECRET=Alt@2023 -ALTHASURA=https://alt.uniteframework.io/hasura/v1/graphql -ALTKEYCLOAK=https://alt.uniteframework.io/auth/admin/realms/hasura-app/users -SUNBIRDURL= https://sunbirdsaas.com #https://diksha.gov.in -# Keycloak Admin Credentials -KEYCLOAK_USERNAME=admin -KEYCLOAK_PASSWORD=Alt@2022 diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..370c63d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,19 @@ +pipeline { + agent any + stages { + stage('Checkout'){ + steps{ + git branch: 'uatnew' , url: 'https://github.com/transform1234/alt-backend.git' + } + } + + stage ('Build') { + steps { + sh 'docker rm -f shiksha-backend' + sh 'docker rmi backend_main' + sh 'cd /var/lib/jenkins/workspace/Backend/' + sh 'docker-compose up -d' + } + } + } +} diff --git a/README.md b/README.md index 9fe8812..2115bf8 100644 --- a/README.md +++ b/README.md @@ -71,3 +71,5 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors ## License Nest is [MIT licensed](LICENSE). + + diff --git a/docker-compose.yml b/docker-compose.yml index e3cc146..15d0bda 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ services: - .env networks: - webnet + restart: always # depends_on: # - redis # - postgres @@ -42,4 +43,4 @@ services: networks: webnet: # volumes: -# pgdata: \ No newline at end of file +# pgdata: