Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def frontendImage="pandaacademy/frontend"
- def backendImage="pandaacademy/backend"
- pipeline {
- agent {
- label 'agent'
- }
- parameters {
- string(name: 'backendDockerTag', defaultValue: 'latest', description: 'Backend docker image tag')
- string(name: 'frontendDockerTag', defaultValue: 'latest', description: 'Frontend docker image tag')
- }
- stages {
- stage('Deploy application') {
- steps {
- script {
- withEnv(["FRONTEND_IMAGE=$frontendImage:$frontendDockerTag",
- "BACKEND_IMAGE=$backendImage:$backendDockerTag"]) {
- sh "docker-compose up -d"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement