[gitlab]gitlab-runner 가 느려졌을 경우 대처방법 $ sudo gitlab-runner verify 사용안하고 있는게 있거나 삭제된게 있는지 확인한다. 혹시 있다면, /etc/gitlab-runner/config.toml 에서 삭제한다. $ vi /etc/gitlab-runner/config.toml 삭제했다면 gitlab-runner 를 재시작 해준다. $ sudo gitlab-runner restart 그리고 같은 서버에 경우라면 하나 gitlab-runner 를 share 할 수 있는 방법도 있다. share 하고자하는 gitlab-runner 설정에서 상기 항목을 체크해제해준다. other available runners 에 표시된 것을 enable for this project 버튼 을 눌러서 연결해주면 된다. gitlab 4년 전
[gitlab].gitlab-ci.yml 설정 # deploy:테스트환경 deploy_staging: stage: deploy before_script: - cd $WORKING_DIR - rm -Rf $WORKING_DIR/.git* script: - git clone --no-checkout https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/{해당 gitlaburl}.git $WORKING_DIR/bk && mv $WORKING_DIR/bk/.git . && rm -rf $WORKING_DIR/bk && git checkout --force develop tags: - staging(gitlab-runner에서 선언한 태그) only: - develop environment: staging when: on.. gitlab 5년 전
[centos]gitlab runner 설치 Gitlab runner 설치 curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash sudo yum install gitlab-runner Gitlab runner 등록 sudo gitlab-runner register Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): https://gitlab.com/ Please enter the gitlab-ci token for this runner: Gitlab CI/CD settings > Runner 에 적힌 토큰을 적어줍니다. Please enter .. gitlab 5년 전