Skip to content

Commit d8ad220

Browse files
authored
fix: 将release镜像推送至harbor (#90)
这个 PR 完成了: - 将release镜像推送至harbor ### 相关资料 - close https://guild.adventurer.tech/projects/4/tickets/326
1 parent 4269f84 commit d8ad220

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions: write-all
1010

1111
env:
1212
DOCKER_IMAGE: 36node/auth
13+
HARBOR_IMAGE: ${{ secrets.HARBOR_DOMAIN }}/36node/auth
1314
SDK_TS_REPO: 36node/auth-sdk-ts
1415

1516
concurrency:
@@ -45,16 +46,25 @@ jobs:
4546
with:
4647
images: |
4748
${{ env.DOCKER_IMAGE }}
49+
${{ env.HARBOR_IMAGE }}
4850
tags: ${{ steps.get_tag.outputs.VERSION }}
4951
- name: Set up QEMU
5052
uses: docker/setup-qemu-action@v3
5153
- name: Set up Docker Buildx
5254
uses: docker/setup-buildx-action@v3
55+
5356
- name: Login to DockerHub
5457
uses: docker/login-action@v3
5558
with:
5659
username: '${{ secrets.DOCKERHUB_USERNAME }}'
5760
password: '${{ secrets.DOCKERHUB_TOKEN }}'
61+
- name: Login to Harbor
62+
uses: docker/login-action@v3
63+
with:
64+
registry: ${{ secrets.HARBOR_DOMAIN }}
65+
username: ${{ secrets.HARBOR_USERNAME }}
66+
password: ${{ secrets.HARBOR_PASSWORD }}
67+
5868
- name: Build and push
5969
uses: docker/build-push-action@v5
6070
with:

0 commit comments

Comments
 (0)