This commit is contained in:
parent
6172dc614b
commit
a5c792e0f4
@ -4,7 +4,7 @@ on: [push]
|
|||||||
env:
|
env:
|
||||||
DOTNET_VERSION: 8.x
|
DOTNET_VERSION: 8.x
|
||||||
jobs:
|
jobs:
|
||||||
Pack-And-Publish:
|
CI-CD-K8S:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -41,7 +41,7 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: registry.cn-guangzhou.aliyuncs.com/acme_nrop/dotnet-deploy-k8s:${{gitea.sha}}
|
tags: registry.cn-guangzhou.aliyuncs.com/acme_nrop/dotnet-deploy-k8s:${{gitea.sha}}
|
||||||
- name: deploy to cluster
|
- name: deploy to cluster
|
||||||
uses: steebchen/kubectl@v2.0.0.0.0
|
uses: steebchen/kubectl@v2.0.0
|
||||||
with:
|
with:
|
||||||
config: ${{ secrets.KUBE_CONFIG_DATA }}
|
config: ${{ secrets.KUBE_CONFIG_DATA }}
|
||||||
command: set image --record deployment/dotnet-cicd-k8s-sample container=dotnet-deploy-k8s:${{gitea.sha}}
|
command: set image --record deployment/dotnet-cicd-k8s-sample container=dotnet-deploy-k8s:${{gitea.sha}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user