first commit
This commit is contained in:
		
							
								
								
									
										17
									
								
								action.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								action.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					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 ${{env.ALIYUN_K8S_URL}} --token ${{env.ALIYUN_K8S_TOKEN}} -n ${{inputs.namespace}} set image deployment/${{inputs.deployment}} container-0=${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user