Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: use depot registry

Kyle Mendell0cebb42cd164
diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml
index 4f765ad5d..88c04bee1 100644
--- a/.github/workflows/e2e-tests.yml
+++ b/.github/workflows/e2e-tests.yml
@@ -31,13 +31,16 @@ jobs:
actions: write
id-token: write
runs-on: depot-ubuntu-latest
+ outputs:
+ build-id: ${{ steps.build.outputs.build-id }}
steps:
- uses: actions/checkout@v5
- name: Set up Depot CLI
uses: depot/setup-action@v1
- - name: Build and export Arcane image
+ - name: Build and save Arcane image
+ id: build
uses: depot/build-push-action@v1
with:
token: ${{ secrets.DEPOT_TOKEN }}
@@ -48,18 +51,15 @@ jobs:
build-args: BUILD_TAGS=playwright
save: true
- - name: Upload Docker image artifact
- uses: actions/upload-artifact@v5
- with:
- name: arcane-image
- path: /tmp/arcane-image.tar
- retention-days: 1
+ - name: Export build ID for tests
+ run: echo "BUILD_ID=${{ steps.build.outputs.build-id }}" >> $GITHUB_ENV
test:
if: ${{ github.event_name != 'pull_request' || github.head_ref != 'l10n_crowdin' }}
permissions:
contents: read
actions: write
+ id-token: write
runs-on: depot-ubuntu-latest
needs: build
strategy:
@@ -79,6 +79,16 @@ jobs:
steps:
- uses: actions/checkout@v5
+ - name: Set up Depot CLI
+ uses: depot/setup-action@v1
+
+ - name: Pull Arcane image from Depot
+ run: |
+ depot pull --project np622krb2x ${{ needs.build.outputs.build-id }}
+ docker tag $(docker images -q | head -n1) arcane:playwright-tests
+ env:
+ DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
+
- name: Setup pnpm
uses: pnpm/action-setup@v4
@@ -102,15 +112,6 @@ jobs:
docker volume create cache || true
docker network create my-test-network || true
- - name: Download Arcane Docker image artifact
- uses: actions/download-artifact@v6
- with:
- name: arcane-image
- path: /tmp
-
- - name: Load Arcane Docker image
- run: docker load -i /tmp/arcane-image.tar
-
- name: Pull and save test images
run: |
docker pull ghcr.io/linuxserver/nginx:latest