Skip to content

Commit d7eaae8

Browse files
add release images stage
Signed-off-by: wuyingjun <[email protected]>
1 parent e867f9e commit d7eaae8

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/release_images.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Upload Images
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
images:
8+
runs-on: ubuntu-latest
9+
permissions: write-all
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Set up qemu
16+
uses: docker/setup-qemu-action@v2
17+
- name: Login registry
18+
run: |
19+
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
20+
- name: Push images
21+
env:
22+
ON_PLUGINS: true
23+
run: |
24+
make upload-images

Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ test:
9797

9898
upload-images: images
9999
@echo "push images to $(REGISTRY)"
100-
ifneq ($(REGISTRY_USER_NAME), "")
101-
docker login -u ${REGISTRY_USER_NAME} -p ${REGISTRY_PASSWORD} ${REGISTRY_SERVER_ADDRESS}
102-
endif
103100
docker push ${REGISTRY}/clusterlink-controller-manager:${VERSION}
104101
docker push ${REGISTRY}/clusterlink-operator:${VERSION}
105102
docker push ${REGISTRY}/clusterlink-agent:${VERSION}

0 commit comments

Comments
 (0)