fix: use DIND service instead of host docker socket
This commit is contained in:
parent
de4c50c8ee
commit
45223f0655
1 changed files with 22 additions and 17 deletions
|
|
@ -1,13 +1,14 @@
|
|||
when:
|
||||
branch: main
|
||||
- branch: main
|
||||
event: push
|
||||
|
||||
steps:
|
||||
build-forgejo:
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
secrets:
|
||||
- forgejo_registry_token
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
FORGEJO_REGISTRY_TOKEN:
|
||||
from_secret: forgejo_registry_token
|
||||
commands:
|
||||
- docker login forgejo.corentic.eu -u tobi -p $FORGEJO_REGISTRY_TOKEN
|
||||
- docker build -t forgejo.corentic.eu/corentic/mcp-fleet-forgejo:latest -f forgejo/Dockerfile forgejo/
|
||||
|
|
@ -15,10 +16,10 @@ steps:
|
|||
|
||||
build-woodpecker:
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
secrets:
|
||||
- forgejo_registry_token
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
FORGEJO_REGISTRY_TOKEN:
|
||||
from_secret: forgejo_registry_token
|
||||
commands:
|
||||
- docker login forgejo.corentic.eu -u tobi -p $FORGEJO_REGISTRY_TOKEN
|
||||
- docker build -t forgejo.corentic.eu/corentic/mcp-fleet-woodpecker:latest -f woodpecker/Dockerfile woodpecker/
|
||||
|
|
@ -26,10 +27,10 @@ steps:
|
|||
|
||||
build-semaphore:
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
secrets:
|
||||
- forgejo_registry_token
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
FORGEJO_REGISTRY_TOKEN:
|
||||
from_secret: forgejo_registry_token
|
||||
commands:
|
||||
- docker login forgejo.corentic.eu -u tobi -p $FORGEJO_REGISTRY_TOKEN
|
||||
- docker build -t forgejo.corentic.eu/corentic/mcp-fleet-semaphore:latest -f semaphore/Dockerfile semaphore/
|
||||
|
|
@ -37,11 +38,15 @@ steps:
|
|||
|
||||
build-github:
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
secrets:
|
||||
- forgejo_registry_token
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
FORGEJO_REGISTRY_TOKEN:
|
||||
from_secret: forgejo_registry_token
|
||||
commands:
|
||||
- docker login forgejo.corentic.eu -u tobi -p $FORGEJO_REGISTRY_TOKEN
|
||||
- docker build -t forgejo.corentic.eu/corentic/mcp-fleet-github:latest -f github/Dockerfile github/
|
||||
- docker push forgejo.corentic.eu/corentic/mcp-fleet-github:latest
|
||||
|
||||
services:
|
||||
docker:
|
||||
image: docker:27-dind
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue