Skip to content

Instantly share code, notes, and snippets.

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)]
@eeganlf
eeganlf / vote-ui-deployment.yaml
Created July 22, 2022 04:49
vote-ui-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: vote-ui
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: vote-ui
@eeganlf
eeganlf / Jenkinsfile
Created July 13, 2022 01:21 — forked from initcron/Jenkinsfile
Deploy to Dev Stage
stage('deploy to dev'){
agent any
when{
branch 'master'
}
steps{
echo 'Deploy instavote app with docker compose'
sh 'docker-compose up -d'
}
}
@eeganlf
eeganlf / docker-compose.yaml
Last active November 19, 2022 03:08 — forked from initcron/docker-compose.yaml
Docker Compose Spec with Links
services:
vote:
image: xxxxx/vote:latest
ports:
- 5000:80
links:
- redis:redis
redis:
image: redis:alpine
@eeganlf
eeganlf / docker-compose.yaml
Last active August 8, 2024 00:53 — forked from initcron/docker-compose.yaml
Simple Version of Docker Compose V1 Spec
services:
vote:
image: xxxxx/vote:latest
ports:
- 5000:80
result:
image: xxxxx/result:latest
ports:
- 5001:80
@eeganlf
eeganlf / docker-compose.yaml
Last active February 6, 2023 11:31 — forked from initcron/docker-compose.yaml
Docker Compose spec with Backing Services
services:
vote:
image: xxxxx/vote:latest
ports:
- 5000:80
redis:
image: redis:alpine
db:
@eeganlf
eeganlf / docker-compose.yaml
Last active August 8, 2024 05:05 — forked from initcron/docker-compose.yaml
Docker Compose Spec with Dockerfile Build Integration.
volumes:
db-data:
networks:
instavote:
driver: bridge
services:
vote:
image: xxxxx/vote:latest
@eeganlf
eeganlf / docker-compose.yaml
Last active August 8, 2024 04:13 — forked from initcron/docker-compose.yaml
Docker Compose V3 Spec with fix to DB.
volumes:
db-data:
networks:
instavote:
driver: bridge
services:
vote:
image: xxxxx/vote:latest
@eeganlf
eeganlf / docker-compose.yaml
Created July 13, 2022 01:16 — forked from initcron/docker-compose.yaml
Docker Compose V3 Spec
version: "3.8"
volumes:
db-data:
networks:
instavote:
driver: bridge
services: