AWS CodeBuild
Here is an example of an AWS CodeBuild build, where we build the Earthly target +build.
Note
Ensure when you're creating your CodeBuild Project that you enable the Privileged flag in order to allow Earthly build Docker images.
1
# ./buildspec.yml
2
version: 0.2
3
​
4
phases:
5
install:
6
commands:
7
- wget https://github.com/earthly/earthly/releases/download//earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly
8
pre_build:
9
commands:
10
- echo Logging in to Docker
11
- docker login --username "$DOCKERHUB_USERNAME" --password "$DOCKERHUB_TOKEN"
12
build:
13
commands:
14
- earthly --version
15
- earthly --ci --push +build
Copied!
For a complete guide on CI integration see the CI integration guide.
Last modified 2d ago
Copy link