[api] Jenkinsfile.pjt

- 도커 up
This commit is contained in:
2026-02-03 17:55:10 +09:00
parent 1cdf8977ae
commit e4f353b097
+17
View File
@@ -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
'
'''
}
}
}
} }
} }