Skip to content

Commit 7ce14ab

Browse files
dumbbellmergify[bot]
authored andcommitted
GitHub Actions: Add GHCR login step to test-{authnz,selenium}.yaml workflows
[Why] Both workflows build and publish docker images but they currently fail to publish them because of a permission denied. [How] This patch replicates (copy-pastes) what was done to the `oci.yaml` workflow. (cherry picked from commit 2ae6e79)
1 parent 2e283a5 commit 7ce14ab

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/test-authnz.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ jobs:
4747
- name: Checkout
4848
uses: actions/checkout@v4
4949

50+
- name: 'Login to GitHub Container Registry'
51+
uses: docker/login-action@v3
52+
with:
53+
registry: ghcr.io
54+
username: ${{ github.actor }}
55+
password: ${{ secrets.GHCR_TOKEN }}
56+
5057
- name: Configure OTP & Elixir
5158
uses: erlef/[email protected]
5259
with:

.github/workflows/test-selenium.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
- name: Checkout
4545
uses: actions/checkout@v4
4646

47+
- name: 'Login to GitHub Container Registry'
48+
uses: docker/login-action@v3
49+
with:
50+
registry: ghcr.io
51+
username: ${{ github.actor }}
52+
password: ${{ secrets.GHCR_TOKEN }}
53+
4754
- name: Configure OTP & Elixir
4855
uses: erlef/[email protected]
4956
with:

0 commit comments

Comments
 (0)