When I call a script in my gitlab-ci yml file, sometimes some characters within the call are skipped, such that the command cannot be executed anymore. An example: The call of $ Scripts/build_all.bat Argument1 Argument2 results in: Script/build_all.bat : The term ‘Script/build_all.bat’ is not recognized as the name of a cmdlet, function, script file, or ..
Category : gitlab
I am using gitlab installed on ubuntu server to run my gitlab ci/cd jobs. So my .gitlab-ci.yml with template of docker looks like below: stages: – build docker-build: # Official docker image. image: docker:latest stage: build services: – docker:dind before_script: – docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: – docker build –pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" ..
I have a Django project stored as a git repo on a self-hosted GitLab server. I’m setting up a CI/CD pipeline so that GitLab runs tests on the Django project on every commit. This will be done using a docker runner. My Django project depends on mariadb, so my .gitlab-ci.yml file starts the mariadb container ..
I have GitLab ci with this config step-deploy-development: stage: development image: docker:stable services: – docker:18.09.7-dind before_script: – export DOCKER_HOST="tcp://localhost:2375" – docker info – export DYNAMIC_ENV_VAR=DEVELOPMENT – apk update – apk upgrade – apk add util-linux pciutils usbutils coreutils binutils findutils grep – apk add python3 python3-dev python3 py3-pip – pip install awscli script: – echo ..
It appears that Keycloak does not properly work as a service in GitLab CI. https://gitlab.com/gitlab-org/gitlab/-/issues/273753 It also appears that someone has found some sort of workaround. https://stackoverflow.com/a/61942345/5476186 But I’m wondering if there are other possible solutions. For instance, I’ve got keycloak and my app already dockerized in a docker-compose.yml, is there any reason I shouldn’t ..
We use Gitlab CI/CD, building and deploying with runners on locally hosted machines and using the Gitlab container registry to store our Docker images. We log in to the Gitlab registry like so: default: before_script: – "docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"" This works fine with the runners in our deployment environments, which each ..
I am new to GitLabCI, it seems GitLab CI is docker everywhere. I was trying to run a Mariadb before run tests. In Github actions, it is very easy, just docker-compose up -d command before my mvn. When came to GitLab CI. I was trying to use the following job to archive the purpose. test: ..
I tried to add a mariadb service in GitLab CI for running tests. Define the docker vars in gobal variables and add a mariadb in the job test/services. variables: MYSQL_DATABASE: backend MYSQL_USER: admin MYSQL_PASSWORD: admin test: stage: test image: maven:3.6.3-openjdk-16 services: – name: mariadb alias: db command: [ "–character-set-server=utf8mb4 –collation-server=utf8mb4_unicode_ci" ] … When the codes ..
We’re using gitlab-ci + helm. In my specific use case, I am building something from source inside the DockerFile, from a branch/tag specified as a build-arg. I can use git rev-parse HEAD to capture the current commit hash and use it inside the DockerFile. I’m looking for a way to extract that information and assign ..
In the following gitlab-ci.yml file, I’m using the commit hash of my project as a tag for its docker container. Its supposed to do the following: ssh on a server save the hash of the current local commit to a file named current pull and save the new hash to a file named new get ..