Skip to content

Commit 7b5b516

Browse files
authored
fix(ci): docker login for pull images (#193)
Signed-off-by: ashing <[email protected]>
1 parent b9a2380 commit 7b5b516

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

.github/workflows/apisix-conformance-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ jobs:
7373
with:
7474
go-version: "1.22"
7575

76+
- name: Login to Registry
77+
uses: docker/login-action@v1
78+
with:
79+
registry: ${{ secrets.DOCKER_REGISTRY }}
80+
username: ${{ secrets.DOCKER_USERNAME }}
81+
password: ${{ secrets.DOCKER_PASSWORD }}
82+
7683
- name: Build images
7784
env:
7885
TAG: dev

.github/workflows/apisix-e2e-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ jobs:
7373
with:
7474
go-version: "1.22"
7575

76+
- name: Login to Registry
77+
uses: docker/login-action@v1
78+
with:
79+
registry: ${{ secrets.DOCKER_REGISTRY }}
80+
username: ${{ secrets.DOCKER_USERNAME }}
81+
password: ${{ secrets.DOCKER_PASSWORD }}
82+
7683
- name: Build images
7784
env:
7885
TAG: dev

.github/workflows/conformance-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ jobs:
7070
uses: actions/setup-go@v4
7171
with:
7272
go-version: "1.22"
73+
- name: Login to Registry
74+
uses: docker/login-action@v1
75+
with:
76+
registry: ${{ secrets.DOCKER_REGISTRY }}
77+
username: ${{ secrets.DOCKER_USERNAME }}
78+
password: ${{ secrets.DOCKER_PASSWORD }}
7379

7480
- name: Login to Private Registry
7581
uses: docker/login-action@v1

.github/workflows/e2e-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ jobs:
7070
with:
7171
go-version: "1.22"
7272

73+
- name: Login to Registry
74+
uses: docker/login-action@v1
75+
with:
76+
registry: ${{ secrets.DOCKER_REGISTRY }}
77+
username: ${{ secrets.DOCKER_USERNAME }}
78+
password: ${{ secrets.DOCKER_PASSWORD }}
79+
7380
- name: Login to Private Registry
7481
uses: docker/login-action@v1
7582
with:

0 commit comments

Comments
 (0)