0

Point to most recent earthly + cd to root on build

This commit is contained in:
Gabe Kangas 2022-06-18 20:46:05 -07:00
parent fce3672bc1
commit 233a2ccb2f
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
2 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download latest earthly
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.6.14/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.6.16/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Earthly version
run: earthly --version

View File

@ -8,6 +8,9 @@ VERSION="${DATE}-nightly"
echo "Building Docker image ${DOCKER_IMAGE}..."
# Change to the root directory of the repository
cd $(git rev-parse --show-toplevel)
earthly --ci --push +docker --image="ghcr.io/owncast/${DOCKER_IMAGE}" --tag=nightly --version=${VERSION}
# docker push ghcr.io/owncast/${DOCKER_IMAGE}:nightly