www/.gitea/workflows/earthly.yml
Xe Iaso 6b5cf687cc
fix?????????
Signed-off-by: Xe Iaso <me@xeiaso.net>
2024-09-19 12:05:51 -04:00

47 lines
1.6 KiB
YAML

name: GitHub Actions CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name: example earthly test
runs-on: ubuntu-latest
env:
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
steps:
- name: "Install Earthly"
run: |
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://pkg.earthly.dev/earthly.pgp | sudo gpg --dearmor -o /usr/share/keyrings/earthly-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/earthly-archive-keyring.gpg] https://pkg.earthly.dev/deb \
stable main" | sudo tee /etc/apt/sources.list.d/earthly.list > /dev/null
sudo apt-get update
sudo apt-get install -y earthly
- uses: actions/checkout@v4
- name: Docker login # to avoid dockerhub rate-limiting
run: docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_PASSWORD }}"
- name: Log into ghcr.io
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: xe
password: ${{ secrets.GHCR_TOKEN }}
- name: use sat alpha
run: |
earthly org select me-2625
earthly sat select alpha
docker info
env
- name: run the earthly hello world
run: earthly --verbose github.com/earthly/hello-world:main+hello