update actions yaml
Some checks failed
dotnet-cicd-k8s / CI-CD-K8S (push) Failing after 2m6s

This commit is contained in:
Mingor(100757) 2024-08-28 10:42:24 +08:00
parent 6172dc614b
commit a5c792e0f4

View File

@ -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}}