mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04:00 
			
		
		
		
	chore: switch to workflow actions and upload to GHCR (#2355)
* Switch to workflow actions and upload to GHCR * cleanup yml file --------- Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							0a00a6ea0d
						
					
				
				
					commit
					71f1607b58
				
			
							
								
								
									
										95
									
								
								.github/workflows/partial-builder.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										95
									
								
								.github/workflows/partial-builder.yml
									
									
									
									
										vendored
									
									
								
							| @@ -39,11 +39,32 @@ jobs: | |||||||
|           username: ${{ secrets.DOCKERHUB_USERNAME }} |           username: ${{ secrets.DOCKERHUB_USERNAME }} | ||||||
|           password: ${{ secrets.DOCKERHUB_TOKEN }} |           password: ${{ secrets.DOCKERHUB_TOKEN }} | ||||||
|  |  | ||||||
|       - name: Build Frontend Image |       - name: Log in to the Container registry | ||||||
|         run: | |         uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||||||
|           docker build --push --no-cache \ |         with: | ||||||
|             --tag hkotel/mealie:frontend-${{ inputs.tag }} \ |           registry: ghcr.io | ||||||
|             --platform linux/amd64,linux/arm64 --file=./docker/frontend.Dockerfile . |           username: ${{ github.actor }} | ||||||
|  |           password: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |  | ||||||
|  |       - name: Extract metadata (tags, labels) for Docker | ||||||
|  |         id: meta | ||||||
|  |         uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||||||
|  |         with: | ||||||
|  |           images: | | ||||||
|  |               hkotel/mealie | ||||||
|  |               ghcr.io/${{ github.repository }} | ||||||
|  |  | ||||||
|  |       - name: Build and push Frontend images | ||||||
|  |         uses: docker/build-push-action@v4 | ||||||
|  |         with: | ||||||
|  |           file: docker/frontend.Dockerfile | ||||||
|  |           context: . | ||||||
|  |           push: true | ||||||
|  |           tags: frontend-${{ steps.meta.outputs.tags }} | ||||||
|  |           labels: ${{ steps.meta.outputs.labels }} | ||||||
|  |           platforms: | ||||||
|  |             - linux/amd64 | ||||||
|  |             - linux/arm64 | ||||||
|  |  | ||||||
|   build-backend: |   build-backend: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| @@ -75,12 +96,32 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           echo "__version__ = \"${{ inputs.tag }}\"" > ./mealie/__init__.py |           echo "__version__ = \"${{ inputs.tag }}\"" > ./mealie/__init__.py | ||||||
|  |  | ||||||
|       - name: Build Backend Image |       - name: Log in to the Container registry | ||||||
|         run: | |         uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||||||
|           docker build --push --no-cache \ |         with: | ||||||
|             --tag hkotel/mealie:api-${{ inputs.tag }}  \ |           registry: ghcr.io | ||||||
|             --build-arg COMMIT=$(git rev-parse HEAD) \ |           username: ${{ github.actor }} | ||||||
|             --platform linux/amd64,linux/arm64 --file=./docker/api.Dockerfile . |           password: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |  | ||||||
|  |       - name: Extract metadata (tags, labels) for Docker | ||||||
|  |         id: meta | ||||||
|  |         uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||||||
|  |         with: | ||||||
|  |           images: | | ||||||
|  |             hkotel/mealie | ||||||
|  |             ghcr.io/${{ github.repository }} | ||||||
|  |  | ||||||
|  |       - name: Build and push API images | ||||||
|  |         uses: docker/build-push-action@v4 | ||||||
|  |         with: | ||||||
|  |           file: docker/api.Dockerfile | ||||||
|  |           context: . | ||||||
|  |           push: true | ||||||
|  |           tags: api-${{ steps.meta.outputs.tags }} | ||||||
|  |           labels: ${{ steps.meta.outputs.labels }} | ||||||
|  |           platforms: | ||||||
|  |             - linux/amd64 | ||||||
|  |             - linux/arm64 | ||||||
|  |  | ||||||
|   build-omni: |   build-omni: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| @@ -112,9 +153,29 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           echo "__version__ = \"${{ inputs.tag }}\"" > ./mealie/__init__.py |           echo "__version__ = \"${{ inputs.tag }}\"" > ./mealie/__init__.py | ||||||
|  |  | ||||||
|       - name: Build Omni-Image |       - name: Log in to the Container registry | ||||||
|         run: | |         uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||||||
|           docker build --push --no-cache \ |         with: | ||||||
|             --tag hkotel/mealie:omni-${{ inputs.tag }}  \ |           registry: ghcr.io | ||||||
|             --build-arg COMMIT=$(git rev-parse HEAD) \ |           username: ${{ github.actor }} | ||||||
|             --platform linux/amd64,linux/arm64 --file=./docker/omni.Dockerfile . |           password: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |  | ||||||
|  |       - name: Extract metadata (tags, labels) for Docker | ||||||
|  |         id: meta | ||||||
|  |         uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||||||
|  |         with: | ||||||
|  |           images: | | ||||||
|  |             hkotel/mealie | ||||||
|  |             ghcr.io/${{ github.repository }} | ||||||
|  |  | ||||||
|  |       - name: Build and push API images | ||||||
|  |         uses: docker/build-push-action@v4 | ||||||
|  |         with: | ||||||
|  |           file: docker/omni.Dockerfile | ||||||
|  |           context: . | ||||||
|  |           push: true | ||||||
|  |           tags: omni-${{ steps.meta.outputs.tags }} | ||||||
|  |           labels: ${{ steps.meta.outputs.labels }} | ||||||
|  |           platforms: | ||||||
|  |             - linux/amd64 | ||||||
|  |             - linux/arm64 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user