Skip to content

Commit

Permalink
Merge pull request kosmos-io#55 from wuyingjun-lucky/main
Browse files Browse the repository at this point in the history
add release images stage
  • Loading branch information
kosmos-robot authored Sep 20, 2023
2 parents 83f78d5 + d7eaae8 commit a948d59
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release_images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Upload Images
on:
push:
tags:
- "v*.*.*"
jobs:
images:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up qemu
uses: docker/setup-qemu-action@v2
- name: Login registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push images
env:
ON_PLUGINS: true
run: |
make upload-images
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ test:

upload-images: images
@echo "push images to $(REGISTRY)"
ifneq ($(REGISTRY_USER_NAME), "")
docker login -u ${REGISTRY_USER_NAME} -p ${REGISTRY_PASSWORD} ${REGISTRY_SERVER_ADDRESS}
endif
docker push ${REGISTRY}/clusterlink-controller-manager:${VERSION}
docker push ${REGISTRY}/clusterlink-operator:${VERSION}
docker push ${REGISTRY}/clusterlink-agent:${VERSION}
Expand Down

0 comments on commit a948d59

Please sign in to comment.