mirror of
				https://github.com/DerTyp7/f1r3wave-website.git
				synced 2025-10-31 14:07:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Build and push docker image
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     branches: ["main"]
 | |
| 
 | |
| jobs:
 | |
|   build-and-push:
 | |
|     runs-on: ubuntu-latest
 | |
|     if: github.repository == 'DerTyp7/f1r3wave-website'
 | |
|     steps:
 | |
|       - name: Checkout code
 | |
|         uses: actions/checkout@v4
 | |
| 
 | |
|       - name: Docker meta
 | |
|         id: meta
 | |
|         uses: docker/metadata-action@v4
 | |
|         with:
 | |
|           images: |
 | |
|             dertyp7/f1r3wave-website
 | |
|           tags: |
 | |
|             type=raw,value=latest
 | |
|             type=raw,value={{version}}
 | |
|           flavor: |
 | |
|             latest=false
 | |
|             prefix=
 | |
|             suffix=
 | |
| 
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v2
 | |
| 
 | |
|       - name: Login to Docker Hub
 | |
|         uses: docker/login-action@v3
 | |
|         with:
 | |
|           username: ${{ secrets.DOCKERHUB_USERNAME }}
 | |
|           password: ${{ secrets.DOCKERHUB_TOKEN }}
 | |
| 
 | |
|       - name: Build and push
 | |
|         uses: docker/build-push-action@v4
 | |
|         with:
 | |
|           context: .
 | |
|           file: ./Dockerfile
 | |
|           push: true
 | |
|           tags: ${{ steps.meta.outputs.tags }}
 | |
|           labels: ${{ steps.meta.outputs.labels }}
 |