Questions tagged [gitlab-auto-devops]
The gitlab-auto-devops tag has no usage guidance.
23
questions
8
votes
4
answers
5k
views
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 ...
3
votes
2
answers
10k
views
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 [email protected]....
2
votes
2
answers
338
views
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 ...
2
votes
1
answer
3k
views
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 ...
1
vote
1
answer
58
views
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&...
1
vote
1
answer
1k
views
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"
...
1
vote
0
answers
1k
views
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 ...
1
vote
0
answers
70
views
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: ...
1
vote
0
answers
2k
views
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 ...
1
vote
0
answers
393
views
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
...
0
votes
1
answer
1k
views
How do I have to configure certmanaager when using a gitlab managed cluster?
I use a scaleway kubernetes cluster v1.21.1 managed by gitlab.
To do this, I created a Cluster Management Project with the default template.
https://docs.gitlab.com/ee/user/clusters/...
0
votes
0
answers
278
views
Why does npm install fail with Assertion failed: (fd > STDERR_FILENO) using buildah?
Hey I have a Dockerfile for a project that I want to build inside of a Gitlab ci/cd pipeline running on Kubernetes.
The Image is built inside a buildah container from quay.io, but while the project ...
0
votes
0
answers
40
views
Cannot log into new GitLab installation
I have recently installed an instance of GitLab CE using Docker. The application sits behind an Nginx proxy and I can access the login page without problems.
Unfortunately, I also cannot log into ...
0
votes
0
answers
936
views
Docker-in-docker/GitLab CI: adding and using credential helper
For my organization I am building a GitLab CI/CD pipeline for one of our projects. One job in this pipeline will be executed on a Docker executor GitLab runner running on one of our own servers. The ...
0
votes
1
answer
40
views
Keep GitLab environment running in Docker container
I'm aiming to deploy an environment for testing. It's a PHP application, and I could simply serve the PHP files using the embedded server.
My .gitlab-ci.yml is plain simple:
docker_test:
stage: ...
0
votes
0
answers
216
views
GITLab with Multiple Servers
I have gitlab setup and deployed:
We are pushing to 3 different Development Servers, 3 different Test Servers, and ultimately 9 different production servers.
Each server has separate configurations, i....
0
votes
0
answers
764
views
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" &...
0
votes
1
answer
595
views
How to resume a manual step in pipeline with gitlab api?
I have a pipeline as below.
pipeline
First two are automatic and the last two jobs are manual.
When I ran the curl command to run the pipeline, as below.
curl -X POST \
--fail \
-F token=...
0
votes
1
answer
2k
views
How pass dotenv file to my deployment using Gitlab's Auto DevOps
Recently I was deployed a EKS cluster and connect it with our Gitlab.com group, I already deployed some examples and templates from Gitlab and all works fine.
Now I’ll want to deploy my Node.js based ...
0
votes
1
answer
182
views
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 ...
0
votes
1
answer
354
views
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 ...
0
votes
1
answer
401
views
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 ...
0
votes
2
answers
12k
views
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 ...