Skip to content

Commit

Permalink
chore(ci): Login to both registries for E2E (#4233)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Jun 25, 2024
1 parent 23ada11 commit 51f82df
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/.reusable-docker-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ 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 @@ -44,19 +38,16 @@ jobs:
uses: actions/checkout@v4

- name: Login to Github Container Registry
if: ${{ startsWith(inputs.api-image, 'ghcr.io') || startsWith(inputs.e2e-image, 'ghcr.io') }}
uses: docker/login-action@v3
with:
registry: ghcr.io
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: 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 51f82df

Please sign in to comment.