yml 썸네일형 리스트형 Make runner jobs with another job You can make gitlab runner jobs with another job. That means we can define jobs like a function in programming. It's cool function, when we have very similar jobs repeatedly Here's some examples. When we have many servers to deploy, we wrote .gitlab-ci.yml file like this. deploy1: script: # send local files to remote server - rsync -artlp --ignore-existing --exclude-from='.rsyncignore' ./ "$USER.. 더보기 .gitlab-ci.yml image: jsrjsr0040/centos-apm-sshvariables: STAGING_SERVER: 123.123.123.123 DEPLOY_SERVER: 123.123.123.123 STAGING_TAGS: 'staging-' DEPLOY_TAGS: 'real-' GITID: 'gitid' GITPASS: 'gitpath' stages: - build - test - deploy before_script: - echo "Before Script" - mkdir -p ~/.ssh - chmod 700 ~/.ssh - eval $(ssh-agent -s) - echo "$SSH_KEY"| ssh-add - - ssh-keyscan -p 9022 $STAGING_SERVER > ~/.ssh/known_.. 더보기 이전 1 다음