Skip to content

Commit bfd5378

Browse files
committed
Add Docker auth
1 parent 89a2b00 commit bfd5378

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/build-root.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ jobs:
1212
- name: Checkout code
1313
uses: actions/checkout@v5
1414

15+
- name: Login to Github Container Registry
16+
uses: docker/login-action@v3
17+
with:
18+
registry: ghcr.io
19+
username: ${{ github.repository_owner }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
1522
- name: Set up Docker Buildx
1623
uses: docker/setup-buildx-action@v3
1724

@@ -32,6 +39,13 @@ jobs:
3239
- name: Checkout code
3340
uses: actions/checkout@v5
3441

42+
- name: Login to Github Container Registry
43+
uses: docker/login-action@v3
44+
with:
45+
registry: ghcr.io
46+
username: ${{ github.repository_owner }}
47+
password: ${{ secrets.GITHUB_TOKEN }}
48+
3549
- name: Run Docker container to resolve versions
3650
id: resolve_versions
3751
run: |

.github/workflows/build-version.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v5
2121

22+
- name: Login to Github Container Registry
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.repository_owner }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
2229
- name: Set up Docker Buildx
2330
uses: docker/setup-buildx-action@v3
2431

0 commit comments

Comments
 (0)