gitlab-ci-runner

Cloning a private Repo from gitlab CI job using HTTPS without exposing my credentials into CLI

穿精又带淫゛_ 提交于 2021-01-22 12:07:31
问题 I have a gitlab ci job that does some work for me but it depends on another repo so I need to clone another repo inside this job. I can't use https cloning because gitlab will ask me for user name and password and the gitlab ci is non-interactive. So how to clone gitlab repo using https inside gitlab ci job. Thanks in advance. 回答1: You should clone that repo using SSH and a read-only deploy key, possibly storing the token in a masked variable. 回答2: I have found a way to authenticate my

What is gitlab runner

别等时光非礼了梦想. 提交于 2021-01-20 18:58:05
问题 I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab. The project is a pre-existing PHP project. I don't want to clean it up just yet, at the moment I've pushed the whole thing into a docker container and it's running fine talking to google cloud's mysql databases etc as it should locally and also on a remote google cloud testing VM. The dream is to be able to push to the development branch, and then merge the dev banch into the

What is gitlab runner

扶醉桌前 提交于 2021-01-20 18:54:43
问题 I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab. The project is a pre-existing PHP project. I don't want to clean it up just yet, at the moment I've pushed the whole thing into a docker container and it's running fine talking to google cloud's mysql databases etc as it should locally and also on a remote google cloud testing VM. The dream is to be able to push to the development branch, and then merge the dev banch into the

What is gitlab runner

痴心易碎 提交于 2021-01-20 18:54:07
问题 I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab. The project is a pre-existing PHP project. I don't want to clean it up just yet, at the moment I've pushed the whole thing into a docker container and it's running fine talking to google cloud's mysql databases etc as it should locally and also on a remote google cloud testing VM. The dream is to be able to push to the development branch, and then merge the dev banch into the

How to configure lighthouse ci in gitlab cicd?

試著忘記壹切 提交于 2021-01-07 02:39:16
问题 I am trying to configure lighthouse report for my angular application, I am configuring in yml file to ensure it will run and create report in gitlab CICD environment. but I am getting an error while it is running in pipeline, have attached the error image, I am new to CI environment, have no idea which causes the issue exactly, is it from configuration or yml file. can anyone help me with this? .gitlab-ci.yml step-report-lighthouse: image: cypress/browsers:node14.15.0-chrome86-ff82 stage:

How to configure lighthouse ci in gitlab cicd?

孤人 提交于 2021-01-07 02:36:52
问题 I am trying to configure lighthouse report for my angular application, I am configuring in yml file to ensure it will run and create report in gitlab CICD environment. but I am getting an error while it is running in pipeline, have attached the error image, I am new to CI environment, have no idea which causes the issue exactly, is it from configuration or yml file. can anyone help me with this? .gitlab-ci.yml step-report-lighthouse: image: cypress/browsers:node14.15.0-chrome86-ff82 stage:

How to Setup GitLab Enviroment Variable in save way?

ぐ巨炮叔叔 提交于 2021-01-04 14:54:07
问题 I don't wan't to put sensitive Credentials (Like API-Keys, passwords...) into my branch. For this, GitLab (and other CI/CD-Services) are able to set Enviroment-Variables. They will be injected on deployment-process into the Script. I know about two ways for GitLab to set them: Via UI (Project ⇒ Settings ⇒ CI/CD ⇒ Variables) Via .gitlab-ci.yml As in my opinion the first way is the secure one, because none files with credentials are saved in the git-repo, it's also the more complecated way...

GitLab CI get last artifact

自作多情 提交于 2021-01-01 06:52:34
问题 I'm trying to get the latest build artifact using curl . Here's what I've tried. First, get last pipeline id: curl -v -H "Content-Type: application/json" -H "PRIVATE-TOKEN: <my-token-here>" https://<project>/api/v4/projects/<project>/pipelines?per_page=1&page=1 Next, get job id based on pipeline id just obtained before: curl -sS --header "PRIVATE-TOKEN: <my-token-here>" "https://[redacted,host]/api/v4/projects/[redacted,project]/pipelines/<pipeline-id>/jobs" | jq '.[] | select(.name == "build

GitLab CI get last artifact

只愿长相守 提交于 2021-01-01 06:50:25
问题 I'm trying to get the latest build artifact using curl . Here's what I've tried. First, get last pipeline id: curl -v -H "Content-Type: application/json" -H "PRIVATE-TOKEN: <my-token-here>" https://<project>/api/v4/projects/<project>/pipelines?per_page=1&page=1 Next, get job id based on pipeline id just obtained before: curl -sS --header "PRIVATE-TOKEN: <my-token-here>" "https://[redacted,host]/api/v4/projects/[redacted,project]/pipelines/<pipeline-id>/jobs" | jq '.[] | select(.name == "build

GitLab CI caching key

大兔子大兔子 提交于 2021-01-01 06:40:20
问题 Say I have the following step in my .gitlab-ci.yml file: setup_vue: image: .... stage: setup script: - cd vue/ - npm install --no-audit cache: key: node-cache paths: - vue/node-modules/ I see; Checking cache for node-cache-1... No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted. Successfully extracted cache And after the script runs: Creating cache node-cache-1... Created cache WARNING: vue/node-modules/: no matching