Skip to content

Commit 6eea9c6

Browse files
committed
fix: github runner image push to harbor
1 parent 676c2ec commit 6eea9c6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
permissions: write-all
1313

1414
env:
15-
DOCKER_IMAGE: 36node/github-runner
15+
DOCKER_IMAGE: harbor.36node.com/common/actions-runner
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}
@@ -42,11 +42,12 @@ jobs:
4242
uses: docker/setup-qemu-action@v3
4343
- name: Set up Docker Buildx
4444
uses: docker/setup-buildx-action@v3
45-
- name: Login to DockerHub
45+
- name: Login to Harbor
4646
uses: docker/login-action@v3
4747
with:
48-
username: "${{ secrets.DOCKERHUB_USERNAME }}"
49-
password: "${{ secrets.DOCKERHUB_TOKEN }}"
48+
registry: harbor.36node.com
49+
username: "${{ secrets.HARBOR_USERNAME }}"
50+
password: "${{ secrets.HARBOR_PASSWORD }}"
5051
- name: Build and push
5152
uses: docker/build-push-action@v6
5253
with:

.github/workflows/release-please.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
permissions: write-all
1010

1111
env:
12-
DOCKER_IMAGE: 36node/github-runner
12+
DOCKER_IMAGE: harbor.36node.com/common/actions-runner
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}
@@ -50,11 +50,12 @@ jobs:
5050
uses: docker/setup-qemu-action@v3
5151
- name: Set up Docker Buildx
5252
uses: docker/setup-buildx-action@v3
53-
- name: Login to DockerHub
53+
- name: Login to Harbor
5454
uses: docker/login-action@v3
5555
with:
56-
username: "${{ secrets.DOCKERHUB_USERNAME }}"
57-
password: "${{ secrets.DOCKERHUB_TOKEN }}"
56+
registry: harbor.36node.com
57+
username: "${{ secrets.HARBOR_USERNAME }}"
58+
password: "${{ secrets.HARBOR_PASSWORD }}"
5859
- name: Build and push
5960
uses: docker/build-push-action@v6
6061
with:

0 commit comments

Comments
 (0)