gitlab-ci

How to increase maximum artifacts size for Gitlab on-premises

别等时光非礼了梦想. 提交于 2021-01-24 08:13:35
问题 We've installed Gitlab on-premises, however someone else did the installation so I don't know as much about configuring the runners, etc. A pipeline failed due to the following error: Uploading artifacts... app/build/outputs/apk/debug/app-debug.apk: found 1 matching files app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk: found 1 matching files ERROR: Uploading artifacts to coordinator... too large archive id=13832 responseStatus=413 Request Entity Too Large status=413 Request

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

How to use zappa in gitlab CI/CD to deploy app to AWS Lambda?

北城以北 提交于 2021-01-07 06:42:27
问题 I am trying to deploy a flask application on aws lambda via zappa through gitlab CI. Since inline editing isn't possible via gitlab CI, I generated the zappa_settings.json file on my remote computer and I am trying to use this to do zappa deploy dev . My zappa_settings.json file: { "dev": { "app_function": "main.app", "aws_region": "eu-central-1", "profile_name": "default", "project_name": "prices-service-", "runtime": "python3.7", "s3_bucket": -MY_BUCKET_NAME- } } My .gitlab-ci.yml file:

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

GitLab CI - avoid build when adding tag

给你一囗甜甜゛ 提交于 2020-12-30 02:00:32
问题 How do I prevent a gitlab ci pipeline being triggered when I add a git tag? I'm running this command locally (as opposed to within a gitlab-ci job) git tag -a "xyz" and then pushing the tag; and this triggers various pipelines. I want to exclude some of those pipelines from running. I'm trying variations on ideas from questions such as this; that question is using only , I'm wanting to exclude, so I'm trying except. The answers there have two variants, one with refs one without. build: # ...