Skip to content

Commit

Permalink
wip: pass in ghcr credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Jan 16, 2024
1 parent 470357d commit 7e12f74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/prepare-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: "Pull & Prepare Docker Workflow"
description: "Sets name and tag, logs in to GHCR, and pulls Docker image."

inputs:
REGISTRY:
description: "GitHub Registry"
required: true
ACTOR:
description: "GitHub Username"
required: true
GITHUB_TOKEN:
description: "GitHub Token"
required: true
Expand All @@ -23,8 +29,8 @@ runs:
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
registry: ${{ inputs.REGISTRY }}
username: ${{ inputs.ACTOR }}
password: ${{ inputs.GITHUB_TOKEN }}

- name: Pull Image
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docker-sanity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:

- uses: ./actions/.github/actions/prepare-docker
with:
REGISTRY: ${{ env.REGISTRY }}
ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "𓋏 Run `backstop test` in Docker"
Expand Down Expand Up @@ -78,6 +80,10 @@ jobs:
id: base

- uses: ./actions/.github/actions/prepare-docker
with:
REGISTRY: ${{ env.REGISTRY }}
ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "🎭 Run `backstop test --confg=playwright` in Docker"
continue-on-error: true
Expand Down

0 comments on commit 7e12f74

Please sign in to comment.