Bitbucket Pipelines
# ./bitbucket-pipelines.yml
image: earthly/earthly:v0.7.23
pipelines:
default:
- step:
name: "Set Earthly token"
script:
- export EARTHLY_TOKEN=$EARTHLY_TOKEN
# See https://docs.earthly.dev/docs/earthly-command#earthly-account-create-token to obtain a token.
- earthly --version
- step:
name: "Docker login"
script:
- docker login --username "$DOCKERHUB_USERNAME" --password "$DOCKERHUB_TOKEN"
- step:
name: "Build"
script:
- earthly --push --sat $EARTHLY_SAT --org $EARTHLY_ORG +buildLast updated
Was this helpful?
