deploy2simcu/action.yml

18 lines
623 B
YAML
Raw Normal View History

2023-08-23 02:16:05 +00:00
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:
2024-06-18 20:55:54 +00:00
- uses: docker://bitnami/kubectl:latest
with:
entrypoint: "/bin/bash"
args: |
2024-06-18 20:59:28 +00:00
-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 }}"