Category : gitlab

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 ..

Read more

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" ..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more