-
Notifications
You must be signed in to change notification settings - Fork 622
Closed
Description
Latest version 23.8.1 not working in Gitlab CI/CD
Error from Gitlab CI/CD - Job
Running with gitlab-runner 15.8.2 (4d1ca121)
on vm-a5547810 8cqh4M4k, system ID: s_1b32f3861d72
Preparing the "docker" executor
00:28
Using Docker executor with image docker:latest ...
Pulling docker image docker:latest ...
Using docker image sha256:70321cb10a0c1a4d71670df58f1bf067eec97f8ab335517366891693f7451308 for docker:latest with digest docker@sha256:5415fccf3da3aed821efb2258cb7dcf52fb9bb0627b02d45338e887c352c4bce ...
Preparing environment
00:00
Running on runner-8cqh4m4k-project-42526920-concurrent-0 via vm-a5547810...
Getting source from Git repository
00:03
Fetching changes...
Reinitialized existing Git repository in ...
Checking out 37513f8c as test/20250719...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:02
Using docker image sha256:70321cb10a0c1a4d71670df58f1bf067eec97f8ab335517366891693f7451308 for docker:latest with digest docker@sha256:5415fccf3da3aed821efb2258cb7dcf52fb9bb0627b02d45338e887c352c4bce ...
$ docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your credentials are stored unencrypted in '/root/.docker/config.json'.
Configure a credential helper to remove this warning. See
https://docs.docker.com/go/credential-store/
Login Succeeded
$ docker compose -f docker-compose.ci.yml build django
#1 [internal] load local bake definitions
#1 reading from stdin 383B done
#1 DONE 0.0s
failed to find target default
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1.gitlab-ci.yml
...
build:
image: docker:latest # 28.3.2
stage: build
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
only:
- master
- development
- /^test\/.*$/
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker compose -f docker-compose.ci.yml build django
- docker compose -f docker-compose.ci.yml push django
...Fixed with the code below
...
build:
image: docker:28.3.1 # working version
stage: build
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
only:
- master
- development
- /^test\/.*$/
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker compose -f docker-compose.ci.yml build django
- docker compose -f docker-compose.ci.yml push django
...gitlab-runner --version
Version: 15.8.2
Git revision: 4d1ca121
Git branch: 15-8-stable
GO version: go1.18.9
Built: 2023-02-09T17:23:17+0000
OS/Arch: linux/amd64Metadata
Metadata
Assignees
Labels
No labels