Skip to content
These docs are still under construction and may contain outdated references to Earthly and/or broken links.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Woodpecker CI

This example uses Woodpecker CI to build the EarthBuild target +build.

Configuration

The project needs to be trusted to grant the capabilities like mounting volumes (required for the docker socket). We also need to include the earthbuild/earthbuild image in the list of images that are allowed to run in privileged mode

#.woodpecker.yml
pipeline:
  earth:
    image: earthbuild/earthbuild:v0.8.19
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - FORCE_COLOR=1
      - EARTH_EXEC_CMD="/bin/sh" 
    secrets: [REGISTRY, REGISTRY_USER, REGISTRY_PASSWORD]
    commands:
     - docker login -u $${REGISTRY_USER} -p $${REGISTRY_PASSWORD} $${REGISTRY}
     - earth --ci --push +build

For a complete guide on CI integration see the CI integration guide.

Last updated