I am learning GitLab CI/CD.
I installed GitLab and GitLab Runner from Officials. Whenever I run the pipeline during Maven build, the job gets stuck. I have a registered runner and it is available to my project, but jobs get stuck.
.gitlab-ci.yml
image: docker:latest
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
SPRING_PROFILES_ACTIVE: gitlab-ci
stages:
- build
- package
- deploy
maven-build:
image: maven:3-jdk-8
stage: build
script: "mvn package -B"
artifacts:
paths:
- target/*.jar
docker-build:
stage: package
script:
- docker build -t registry.com/ci-cd-demo .
- docker push registry.com/ci-cd-demo
k8s-deploy:
image: google/cloud-sdk
stage: deploy
script:
- echo "$GOOGLE_KEY" > key.json
- gcloud container clusters get-credentials standard-cluster-demo --
zone us-east1-c --project ascendant-study-222206
- kubectl apply -f deployment.yml
My runner settings
Error message when runner is already associated with project:
Can you help me?