[api] Jenkinsfile.pjt
- 도커 up
This commit is contained in:
@@ -141,5 +141,22 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('9) Remote docker up') {
|
||||
steps {
|
||||
sshagent(['ssh-pjt']) {
|
||||
sh '''
|
||||
set -e
|
||||
ssh -p ${SSH_PORT} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
||||
${SSH_USER}@${SSH_HOST} \
|
||||
'set -e
|
||||
cd '"${SSH_COMPOSE_DIR}"'
|
||||
export IMAGE_TAG='"${IMAGE_TAG}"'
|
||||
docker compose --env-file /srv/project/alist/env/api/.env -f '"${SSH_COMPOSE_FILE}"' up -d --remove-orphans
|
||||
'
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user