This commit is contained in:
parent
7063ba096f
commit
6172dc614b
@ -1,4 +1,4 @@
|
|||||||
name: dotnet-publish-nuget
|
name: dotnet-cicd-k8s
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -39,4 +39,14 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: registry.cn-guangzhou.aliyuncs.com/acme_nrop/dotnet-deploy-k8s:latest
|
tags: registry.cn-guangzhou.aliyuncs.com/acme_nrop/dotnet-deploy-k8s:${{gitea.sha}}
|
||||||
|
- name: deploy to cluster
|
||||||
|
uses: steebchen/kubectl@v2.0.0.0.0
|
||||||
|
with:
|
||||||
|
config: ${{ secrets.KUBE_CONFIG_DATA }}
|
||||||
|
command: set image --record deployment/dotnet-cicd-k8s-sample container=dotnet-deploy-k8s:${{gitea.sha}}
|
||||||
|
- name: verify deployment
|
||||||
|
uses: steebchen/kubectl@v2.0.0
|
||||||
|
with:
|
||||||
|
config: ${{ secrets.KUBE_CONFIG_DATA }}
|
||||||
|
command: rollout status deployment/dotnet-cicd-k8s-sample
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user