mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Build and release container
 | |
| 
 | |
| on:
 | |
|   workflow_dispatch:
 | |
|   push:
 | |
|     tags:
 | |
|       - "v*"
 | |
| 
 | |
| jobs:
 | |
|   release:
 | |
|     strategy:
 | |
|       matrix:
 | |
|         include:
 | |
|           - os: ubuntu-latest
 | |
|             platform: linux/amd64
 | |
|             name: "AMD64"
 | |
|             dockerfile: "docker/Dockerfile"
 | |
|             tag_suffix: ""
 | |
|             # GitHub doesn't have a ubuntu-latest-arm runner
 | |
|           - os: ubuntu-24.04-arm
 | |
|             platform: linux/arm64/v8
 | |
|             name: "ARM64"
 | |
|             dockerfile: "docker/Dockerfile.arm64"
 | |
|             tag_suffix: "-arm64"
 | |
| 
 | |
|     runs-on: ${{ matrix.os }}
 | |
| 
 | |
|     steps:
 | |
|       - name: Checkout
 | |
|         uses: actions/checkout@v5
 | |
| 
 | |
|       - name: Set up Docker Buildx
 | |
|         uses: docker/setup-buildx-action@v3
 | |
| 
 | |
|       - name: Login to registry
 | |
|         uses: docker/login-action@v3
 | |
|         with:
 | |
|           registry: quay.io
 | |
|           username: ${{ secrets.QUAY_USERNAME }}
 | |
|           password: ${{ secrets.QUAY_PASSWORD }}
 | |
| 
 | |
|       - name: Docker meta
 | |
|         id: meta
 | |
|         uses: docker/metadata-action@v5
 | |
|         with:
 | |
|           images: quay.io/invidious/invidious
 | |
|           flavor: |
 | |
|             latest=false
 | |
|             suffix=${{ matrix.tag_suffix }}
 | |
|           tags: |
 | |
|             type=semver,pattern={{version}}
 | |
|             type=raw,value=latest
 | |
|           labels: |
 | |
|             quay.expires-after=12w
 | |
| 
 | |
|       - name: Build and push Docker ${{ matrix.name }} image for Push Event
 | |
|         uses: docker/build-push-action@v6
 | |
|         with:
 | |
|           context: .
 | |
|           file:  ${{ matrix.dockerfile }}
 | |
|           platforms: ${{ matrix.platform }}
 | |
|           labels: ${{ steps.meta.outputs.labels }}
 | |
|           push: true
 | |
|           tags: ${{ steps.meta.outputs.tags }}
 | |
|           build-args: |
 | |
|             "release=1"
 | 
