18 lines
623 B
YAML
18 lines
623 B
YAML
name: 'update docker image on k8s in simcu-k8s'
|
|
description: 'update docker image on k8s in simcu-k8s'
|
|
inputs:
|
|
namespace:
|
|
description: "更新哪个Namespace下"
|
|
required: true
|
|
deployment:
|
|
description: "deployment名称"
|
|
required: true
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- uses: docker://bitnami/kubectl:latest
|
|
with:
|
|
entrypoint: "/bin/bash"
|
|
args: |
|
|
-c "kubectl -s ${{vars.SIMCU_K8S_URL}} --token ${{vars.SIMCU_K8S_TOKEN}} -n ${{inputs.namespace}} set image deployment/${{inputs.deployment}} container-0=${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}"
|