This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stage('Trigger deployment') { | |
| agent any | |
| environment{ | |
| def GIT_COMMIT = "${env.GIT_COMMIT}" | |
| } | |
| steps{ | |
| echo "${GIT_COMMIT}" | |
| echo "triggering deployment" | |
| // passing variables to job deployment run by vote-deploy repository Jenkinsfile | |
| build job: 'deployment', parameters: [string(name: 'DOCKERTAG', value: GIT_COMMIT)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: vote-ui | |
| spec: | |
| replicas: 1 | |
| revisionHistoryLimit: 3 | |
| selector: | |
| matchLabels: | |
| app: vote-ui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stage('deploy to dev'){ | |
| agent any | |
| when{ | |
| branch 'master' | |
| } | |
| steps{ | |
| echo 'Deploy instavote app with docker compose' | |
| sh 'docker-compose up -d' | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| vote: | |
| image: xxxxx/vote:latest | |
| ports: | |
| - 5000:80 | |
| links: | |
| - redis:redis | |
| redis: | |
| image: redis:alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| vote: | |
| image: xxxxx/vote:latest | |
| ports: | |
| - 5000:80 | |
| result: | |
| image: xxxxx/result:latest | |
| ports: | |
| - 5001:80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| vote: | |
| image: xxxxx/vote:latest | |
| ports: | |
| - 5000:80 | |
| redis: | |
| image: redis:alpine | |
| db: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| volumes: | |
| db-data: | |
| networks: | |
| instavote: | |
| driver: bridge | |
| services: | |
| vote: | |
| image: xxxxx/vote:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| volumes: | |
| db-data: | |
| networks: | |
| instavote: | |
| driver: bridge | |
| services: | |
| vote: | |
| image: xxxxx/vote:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.8" | |
| volumes: | |
| db-data: | |
| networks: | |
| instavote: | |
| driver: bridge | |
| services: |
NewerOlder