www/.gitea/workflows/earthly.yml
Xe Iaso 141416283a
wtf???
Signed-off-by: Xe Iaso <me@xeiaso.net>
2024-09-19 11:03:20 -04:00

39 lines
1.3 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:
- uses: earthly/actions-setup@v1
with:
version: "latest" # or pin to an specific version, e.g. "0.8.1"
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- 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: what version is installed?
run: earthly --version
- name: use sattelite Alpha
run: |
earthly config 'global.container_frontend' 'docker-shell'
earthly org select me-2625
earthly sat select alpha
docker info
- name: run the earthly hello world
run: earthly github.com/earthly/hello-world:main+hello