From 84c2bdc672364737035c9ea216a205529ca82980 Mon Sep 17 00:00:00 2001 From: Ignacio del Valle Alles Date: Wed, 15 May 2024 23:31:57 +0200 Subject: [PATCH] Add GHA-satellites integration (#59) Dogfooding https://github.com/earthly/earthly/blob/main/docs/cloud/satellites/gha-runners.md --- .github/workflows/ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c804d6..7075244 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,14 +13,13 @@ concurrency: jobs: test: name: +test - runs-on: ubuntu-latest + runs-on: [earthly-satellite#gha-lib] env: FORCE_COLOR: 1 EARTHLY_CONVERSION_PARALLELISM: "5" EARTHLY_TOKEN: "${{ secrets.EARTHLY_TOKEN }}" EARTHLY_INSTALL_ID: "earthly-lib-githubactions" steps: - - uses: earthly/actions/setup-earthly@v1 - uses: actions/checkout@v2 - name: Docker mirror login (non fork only) run: docker login registry-1.docker.io.mirror.corp.earthly.dev --username "${{ secrets.DOCKERHUB_MIRROR_USERNAME }}" --password "${{ secrets.DOCKERHUB_MIRROR_PASSWORD }}" @@ -28,7 +27,6 @@ jobs: - name: Configure Earthly to use mirror (non fork only) run: |- earthly config global.buildkit_additional_config "'[registry.\"docker.io\"] - mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'" if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository - name: Run tests @@ -36,17 +34,17 @@ jobs: earthly config git "{github.com: {auth: ssh, user: git}}" && \ eval $(ssh-agent) && \ earthly secrets --org earthly-technologies --project core get littleredcorvette-id_rsa | ssh-add - && \ - earthly --ci -P --org earthly-technologies --satellite lib +test + earthly --ci -P +test + test-native-arm: name: +test-native-arm - runs-on: ubuntu-latest + runs-on: [earthly-satellite#gha-arm-lib] env: FORCE_COLOR: 1 EARTHLY_CONVERSION_PARALLELISM: "5" EARTHLY_TOKEN: "${{ secrets.EARTHLY_TOKEN }}" EARTHLY_INSTALL_ID: "earthly-lib-githubactions" steps: - - uses: earthly/actions/setup-earthly@v1 - uses: actions/checkout@v2 - name: Docker mirror login (non fork only) run: docker login registry-1.docker.io.mirror.corp.earthly.dev --username "${{ secrets.DOCKERHUB_MIRROR_USERNAME }}" --password "${{ secrets.DOCKERHUB_MIRROR_PASSWORD }}" @@ -54,7 +52,6 @@ jobs: - name: Configure Earthly to use mirror (non fork only) run: |- earthly config global.buildkit_additional_config "'[registry.\"docker.io\"] - mirrors = [\"registry-1.docker.io.mirror.corp.earthly.dev\"]'" if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository - name: Run tests @@ -62,4 +59,4 @@ jobs: earthly config git "{github.com: {auth: ssh, user: git}}" && \ eval $(ssh-agent) && \ earthly secrets --org earthly-technologies --project core get littleredcorvette-id_rsa | ssh-add - && \ - earthly --ci -P --org earthly-technologies --satellite lib-arm ./utils/dind+test + earthly --ci -P ./utils/dind+test