Skip to content

Commit

Permalink
chore(ci): Set up Depot CLI for E2E if required (#4229)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Jun 25, 2024
1 parent 19d0193 commit 23ada11
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/.reusable-docker-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ on:
description: The concurrent number of browsers to be used on testing
required: false
default: 3
use-depot:
type: boolean
required: false
default: >
${{ startsWith(inputs.api-image, 'registry.depot.dev') ||
startsWith(inputs.e2e-image, 'registry.depot.dev') }}
jobs:
run-e2e:
Expand All @@ -45,8 +51,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Depot CLI
if: inputs.use-depot
uses: depot/setup-action@v1

- name: Login to Depot Registry
if: startsWith(inputs.api-image, 'registry.depot.dev') || startsWith(inputs.e2e-image, 'registry.depot.dev')
if: inputs.use-depot
run: depot pull-token | docker login -u x-token --password-stdin registry.depot.dev

- name: Run tests on dockerised frontend
Expand Down

0 comments on commit 23ada11

Please sign in to comment.