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 }} DOCKER_HOST: tcp://localhost:2376 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: Podman run: | sudo apt-get update sudo apt-get install -y podman - 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' 'podman-shell' earthly org select me-2625 earthly sat select alpha - name: run the earthly hello world run: earthly --verbose github.com/earthly/hello-world:main+hello