wip: ci: factor out deployment into separate steps for better org.
This commit is contained in:
		
					parent
					
						
							
								cb089a6d05
							
						
					
				
			
			
				commit
				
					
						bc1ec31f44
					
				
			
		
					 1 changed files with 41 additions and 2 deletions
				
			
		|  | @ -79,8 +79,47 @@ jobs: | |||
|         run: | | ||||
|           rsync -v -r --delete -e "ssh -i deploykey.priv -o 'UserKnownHostsFile ./known_hosts'" public/ ccchh-website-deploy@public-web-static-intern.hamburg.ccc.de:/var/www/hamburg.ccc.de/ | ||||
| 
 | ||||
|       - uses: actions/upload-artifact@v3 | ||||
|         if: github.event_name == 'pull_request' | ||||
|       - name: Upload the website build as an artifact | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: website-build | ||||
|           path: public/ | ||||
| 
 | ||||
|   deploy-prod: | ||||
|     runs-on: docker | ||||
|     container: | ||||
|       image: code.forgejo.org/oci/node:22-bookworm | ||||
|     steps: | ||||
|       - name: Download the website build artifact | ||||
|         uses: actions/download-artifact@v4 | ||||
|         with: | ||||
|           name: website-build | ||||
| 
 | ||||
|       - name: Install packages | ||||
|         run: | | ||||
|           apt update | ||||
|           # For uploading. | ||||
|           apt install -y rsync | ||||
| 
 | ||||
| 
 | ||||
|       - name: debugging | ||||
|         run: | | ||||
|           ls -la | ||||
|           echo "website-build:" | ||||
|           ls -la website-build | ||||
| 
 | ||||
|   deploy-staging: | ||||
|     runs-on: docker | ||||
|     container: | ||||
|       image: code.forgejo.org/oci/node:22-bookworm | ||||
|     steps: | ||||
|       - name: Download the website build artifact | ||||
|         uses: actions/download-artifact@v4 | ||||
|         with: | ||||
|           name: website-build | ||||
| 
 | ||||
|       - name: Install packages | ||||
|         run: | | ||||
|           apt update | ||||
|           # For uploading. | ||||
|           apt install -y rsync | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue