Earthly 0.6
Search…
⌃K
Links

GitLab CI/CD

This example uses GitLab CI/CD to build the Earthly target +build.
# .gitlab-ci.yml
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
FORCE_COLOR: 1
EARTHLY_EXEC_CMD: "/bin/sh"
image: earthly/earthly:v0.6.30
before_script:
- earthly bootstrap
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
earthly:
stage: build
script:
- earthly --ci --push -P +build
A full example is available on GitLab.
For a complete guide on CI integration see the CI integration guide.