Add action.yml
This commit is contained in:
		
							parent
							
								
									0245e913ed
								
							
						
					
					
						commit
						e838e833a8
					
				
							
								
								
									
										11
									
								
								action.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								action.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| name: 'BuildAndDeployDocker' | ||||
| description: 'Builds a docker container and deploys it to the cluster' | ||||
| runs: | ||||
|   using: "composite" | ||||
|   steps: | ||||
|     - name: Check out repository code | ||||
|       uses: actions/checkout@v3 | ||||
|     - run: docker login "$PACKAGE_REPO_URL" -u "$PACKAGE_REPO_USER" -p "$PACKAGE_REPO_PASS" | ||||
|     - run: docker build . -t "$PACKAGE_REPO_URL/$(basename ${{ gitea.repository }}):latest" | ||||
|     - run: docker push "$PACKAGE_REPO_URL/$(basename ${{ gitea.repository }}):latest" | ||||
|     - run: wget -q $CLUSTER_ROLLOUT_URL$(basename ${{ gitea.repository }}) | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user