mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	docker: Reintroduce cross-platform builds
This commit is contained in:
		
							parent
							
								
									645fd43339
								
							
						
					
					
						commit
						865c0fb981
					
				
							
								
								
									
										5
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							| @ -16,6 +16,7 @@ env: | |||||||
|     DOCKERHUB_REGISTRY: docker.io |     DOCKERHUB_REGISTRY: docker.io | ||||||
|     IMAGE_NAME: ${{ github.repository }} |     IMAGE_NAME: ${{ github.repository }} | ||||||
|     TEST_TAG: triliumnext/notes:test |     TEST_TAG: triliumnext/notes:test | ||||||
|  |     PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|     test_docker: |     test_docker: | ||||||
| @ -74,6 +75,8 @@ jobs: | |||||||
|           id-token: write |           id-token: write | ||||||
|         steps:                         |         steps:                         | ||||||
|           - uses: actions/checkout@v4 |           - uses: actions/checkout@v4 | ||||||
|  |           - name: Set up QEMU | ||||||
|  |             uses: docker/setup-qemu-action@v3 | ||||||
|           - name: Extract metadata (tags, labels) for GHCR image |           - name: Extract metadata (tags, labels) for GHCR image | ||||||
|             id: ghcr-meta |             id: ghcr-meta | ||||||
|             uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 |             uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||||||
| @ -107,6 +110,7 @@ jobs: | |||||||
|             id: ghcr-push |             id: ghcr-push | ||||||
|             with: |             with: | ||||||
|               context: . |               context: . | ||||||
|  |               platforms: ${{ env.PLATFORMS }} | ||||||
|               push: true               |               push: true               | ||||||
|               tags: ${{ steps.ghcr-meta.outputs.tags }} |               tags: ${{ steps.ghcr-meta.outputs.tags }} | ||||||
|               labels: ${{ steps.ghcr-meta.outputs.labels }} |               labels: ${{ steps.ghcr-meta.outputs.labels }} | ||||||
| @ -129,6 +133,7 @@ jobs: | |||||||
|             id: dh-push |             id: dh-push | ||||||
|             with: |             with: | ||||||
|               context: . |               context: . | ||||||
|  |               platforms: ${{ env.PLATFORMS }} | ||||||
|               push: true |               push: true | ||||||
|               tags: ${{ steps.dh-meta.outputs.tags }} |               tags: ${{ steps.dh-meta.outputs.tags }} | ||||||
|               labels: ${{ steps.dh-meta.outputs.labels }} |               labels: ${{ steps.dh-meta.outputs.labels }} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran