Fix GitLab CI/CD Docker socket configuration
Remove docker:24-dind service to use runner's mounted Docker socket. This fixes the 403 Git access error and Docker socket conflict. Changes: - Remove services: docker:24-dind from build and deploy jobs - Change image from docker:24-dind to docker:24 - Update DOCKER_HOST to use unix socket Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
6c05b7d0e8
commit
849d4994de
@ -3,14 +3,11 @@ stages:
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
DOCKER_TLS_CERTDIR: "/certs"
|
||||
DOCKER_HOST: unix:///var/run/docker.sock
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: docker:24-dind
|
||||
services:
|
||||
- docker:24-dind
|
||||
image: docker:24
|
||||
script:
|
||||
- echo "Building LittleShop Docker image"
|
||||
- docker build -t localhost:5000/littleshop:latest .
|
||||
@ -28,9 +25,7 @@ build:
|
||||
|
||||
deploy:vps:
|
||||
stage: deploy
|
||||
image: docker:24-dind
|
||||
services:
|
||||
- docker:24-dind
|
||||
image: docker:24
|
||||
before_script:
|
||||
- apk add --no-cache openssh-client bash curl
|
||||
- echo "$VPS_SSH_KEY_B64" | base64 -d > /tmp/deploy_key
|
||||
|
||||
Loading…
Reference in New Issue
Block a user