From 19763bde5115a409e4b784b1005e61f7e1e63f5f Mon Sep 17 00:00:00 2001 From: nacho Date: Thu, 16 May 2024 00:05:53 +0200 Subject: [PATCH] test privileged --- .github/workflows/ci.yml | 45 ++-------------------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c804d6..5322f9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,53 +13,12 @@ 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 }}" - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository - - 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 - run: |- - 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 - test-native-arm: - name: +test-native-arm - runs-on: ubuntu-latest - 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 }}" - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository - - 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 run: |- - 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 -P github.com/earthly/earthly/tests/+allow-privileged-test \ No newline at end of file