Questions tagged [gitlab-auto-devops]
19 questions
8
votes
4 answers
How to set environment variables for the CI/CD in GitLab when using Auto DevOps (with GCP Kubernetes)?
I'm having quite a few moving parts here, so, I'm not sure what's wrong yet. I set up my variable this way:
but during the build phase, I get this failure (it's a Django application):
raise ImproperlyConfigured("The SECRET_KEY setting must not…
Pablo
- 7,249
- 25
- 68
- 83
2
votes
2 answers
Will a root domain with an A record pointing to a private IP address be publicly visible? (Gitlab)
I have private Gitlab instance running on a private IP. I want to host a website with Gitlab pages that is only visible inside my network and not accessible from the outside. Also I need my private Gitlab instance to not be accessible from the…
Micromegas
- 231
- 1
- 10
2
votes
1 answer
Configure gitlab-ci.yml to run pytest in docker container on Gitlab CI
I have a Cookiecutter django project which uses Docker. I write my tests using pytest and I run my tests using docker-compose -f local.yml run django pytest. My local.yml file is in my root dir (where manage.py is)
I want to run these tests…
Micromegas
- 231
- 1
- 10
2
votes
2 answers
ERROR: (gcloud.auth.activate-service-account) Could not read json file /root/gcloud-service-key.json: No JSON object could be decoded
I'm getting the below error when running CI/CD pipeline in GitLab.
$ echo "$GCLOUD_SERVICE_KEY" > ${HOME}/gcloud-service-key.json
$ gcloud auth activate-service-account gitlabci@bizao-hub.iam.gserviceaccount.com…
GihanS
- 121
- 1
- 3
1
vote
0 answers
GitLab Runner : unable to update URL base from redirection
I'm currently experimenting with a problem to set up a GitLab Runner. First, I can't run my Runner because I can't use the same file with two processes on Windows 10. It means that I have to create a Runner (which start in a "run" state) each time…
seedbarrett
- 11
- 3
1
vote
0 answers
GitLab AutoDevOps Error timeout deployment rollout to finish kubernetes
I applied the AutoDevOps gitlab-ci configuration. Connect Kubernetes cluster to DigitalOcean.
Pipeline timeout error. What could be the problem?
$ deploy
secret/myprod-xjxj5s-secret replaced
Deploying new release...
Release "myprod-xjxj5s" does not…
Vladimir Galynsky
- 19
- 2
1
vote
1 answer
How to make custom docker image for Gitlab CI
I have CI on Gitlab for creating of my android application.
This is example of my .gitlab-ci.yml:
image: openjdk:8-jdk
variables:
ANDROID_COMPILE_SDK: "28"
ANDROID_BUILD_TOOLS: "28.0.2"
ANDROID_SDK_TOOLS: "4333796"
before_script:
-…
Piduna
- 501
- 3
- 10
- 23
1
vote
0 answers
How to automatically link commit-history to a ticketing system?
Our organization uses Gitlab to host all our git-repositories. Most commits refer to one (sometimes more) Jira-tickets and/or other issue-trackers. Something like:
Add a widget to the trinket
Jira: FOOBAR-1117
ServiceNow: INC0000001319
or even…
Mikhail T.
- 2,272
- 1
- 22
- 49
1
vote
1 answer
Local non LDAP CI-Pipeline User accessing NFS share used by LDAP users
We have a cache directory on NFS which gets written to by LDAP users.
In CI we have the problem that its non-LDAP User can't properly change files in this cache directory.
What is the "correct" way of setting up access to this NFS based cache to…
Harald Thomson
- 111
- 4
0
votes
1 answer
GitLab: Global (instance-level) variables for CI builds
How can I set up global environment variables in GitLab that are not project-specific, but apply to all projects? Classic use cases are deployment keys, docker registry credentials and connect proxy information.
People have been asking about it for…
uav
- 494
- 3
- 16
0
votes
1 answer
Issue with the Azure File Copy on VM
I am trying to copy my files to my virtual machine using Azure File copy tas in my release definition and I am getting the following error :-
Could not fetch access token for Managed Identity. Please configure Managed Identity for virtual machine…
0
votes
1 answer
Gitlab CI won't serve Angular app to staging environment
I am trying to set up a pipeline that does the following:
Commit new Angular code
Build live review app for testing
Manual push to production
I have been able to successfully build the app within the pipeline using a docker file and have the proper…
punygod
- 1
- 1
0
votes
2 answers
How to force install an rpm?
I have a gitlab pipeline where I will be installing latest rpm everytime.
Some times, even if the target machine is changed manually, the rpm should be installed successfully.
But some how I am getting below error.
Loaded plugins:…
Uday Kiran Reddy
- 56
- 6
0
votes
0 answers
How to set a job to manual based on previous stage failure in gitlab pipeline?
I have a pipeline as below.
If I keep the allow_failure value true for the teardown job, the next job is running directly.
allow_failure=true
If I keep the allow_failure value false for the teardown job, the next job is set in a state of skip, and I…
Uday Kiran Reddy
- 56
- 6
0
votes
0 answers
How to check either of variable exist in the gitlab rules?
I have a gitlab rule condition like below.
'$ACTION && $REGION && $ROLE_ARN && $PACKAGEURL && $ACTION == "new" && $CLOUD_PLATFORM == "aws" && $ROLE_ARN != "" && $PACKAGEURL != "" && $REGION != ""'
Want to modify it a bit so that, it should check…
Uday Kiran Reddy
- 56
- 6