Add build action
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				rtj.dev Build and Deploy / Build-and-Deploy (push) Failing after 1m18s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	rtj.dev Build and Deploy / Build-and-Deploy (push) Failing after 1m18s
				
			This commit is contained in:
		
							
								
								
									
										23
									
								
								.gitea/workflows/build.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.gitea/workflows/build.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | name: rtj.dev Build and Deploy | ||||||
|  | run-name: Build and Deploy | ||||||
|  | on: [push] | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   Build-and-Deploy: | ||||||
|  |     runs-on: docker | ||||||
|  |     steps: | ||||||
|  |       - name: Check out repository code | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |       - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." | ||||||
|  |       - name: Pass login information | ||||||
|  |         env:  | ||||||
|  |           DOCKER_AUTH_CONFIG: ${{ secrets.DOCKER_AUTH_CONFIG }} | ||||||
|  |         run: | | ||||||
|  |           docker info | ||||||
|  |           mkdir -p $HOME/.docker | ||||||
|  |           echo "$DOCKER_AUTH_CONFIG" > $HOME/.docker/config.json | ||||||
|  |  | ||||||
|  |       - name: Build Docker Image | ||||||
|  |         run: | | ||||||
|  |           docker build -f Dockerfile -t rtj.dev:0.0.1 | ||||||
|  |           docker push rtj.dev:0.0.1 | ||||||
							
								
								
									
										4
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | FROM klakegg/hugo:ext-alpine-onbuild as hugo | ||||||
|  |  | ||||||
|  | FROM nginx | ||||||
|  | COPY --from=hugo /target /usr/share/nginx/html | ||||||
		Reference in New Issue
	
	Block a user