Skip to content

Commit d0d080b

Browse files
Copilotdannystaple
andcommitted
Add Docker login for GitHub Actions cache authentication
Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
1 parent 39d83e6 commit d0d080b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/on_call_build_site.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ jobs:
1111
- name: Set up Docker Buildx
1212
uses: docker/setup-buildx-action@v3
1313

14+
- name: Login to Docker
15+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
16+
with:
17+
registry: ghcr.io
18+
username: ${{ github.actor }}
19+
password: ${{ github.token }}
20+
1421
- name: Build the site with docker compose
1522
run: |
1623
docker compose -f docker-compose.yml -f docker-compose.ci.yml run --build build

.github/workflows/on_call_staging_test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
- name: Set up Docker Buildx
1919
uses: docker/setup-buildx-action@v3
2020

21+
- name: Login to Docker
22+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ github.token }}
27+
2128
- name: Prepare staging context
2229
run: |
2330
# Copy staging files into the _site directory for the docker build

0 commit comments

Comments
 (0)