forked from Mereithhh/van-nav
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,6 @@ jobs: | |
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Login to AliyunCS | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: registry.cn-beijing.aliyuncs.com | ||
username: ${{ secrets.ALI_USER }} | ||
password: ${{ secrets.ALI_PASSWORD }} | ||
- | ||
name: get image name | ||
run: | | ||
|
@@ -63,12 +56,17 @@ jobs: | |
uses: steebchen/[email protected] | ||
with: # defaults to latest kubectl binary version | ||
config: ${{ secrets.K3S_CONFIG_DATA }} | ||
command: set image deployment/tools van-nav=${{ steps.image-name.outputs.DOCKER_IMAGE_NAME }} | ||
command: set image deployment/tools -n self-tools tools=${{ steps.image-name.outputs.DOCKER_IMAGE_NAME }} | ||
- name: deploy to cluster for demo | ||
uses: steebchen/[email protected] | ||
with: # defaults to latest kubectl binary version | ||
config: ${{ secrets.K3S_CONFIG_DATA }} | ||
command: set image deployment/demo-tools demo=${{ steps.image-name.outputs.DOCKER_IMAGE_NAME }} | ||
command: set image deployment/demo-tools -n self-tools demo=${{ steps.image-name.outputs.DOCKER_IMAGE_NAME }} | ||
- name: deploy to cluster for plg | ||
uses: steebchen/[email protected] | ||
with: # defaults to latest kubectl binary version | ||
config: ${{ secrets.K3S_CONFIG_DATA }} | ||
command: set image deployment/plg-tools -n self-tools tool=${{ steps.image-name.outputs.DOCKER_IMAGE_NAME }} | ||
- name: send Message To me | ||
run: | | ||
curl -X POST -H "Content-Type: application/json" -d '{"source":"github-ci:van-nav","message":"流水线运行完毕,k8s, k3s 已部署。\n版本: ${{ github.ref_name }}" }' ${{ secrets.WEBHOOK_URL }} |