mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
split builders into to jobs
This commit is contained in:
parent
a5472d7274
commit
80639d6968
43
.github/workflows/partial-builder.yml
vendored
43
.github/workflows/partial-builder.yml
vendored
@ -13,8 +13,42 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Build Frontend
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
id: qemu
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
with:
|
||||||
|
image: tonistiigi/binfmt:latest
|
||||||
|
platforms: all
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
install: true
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build Frontend Image
|
||||||
|
working-directory: "frontend"
|
||||||
|
run: |
|
||||||
|
docker build --push --no-cache \
|
||||||
|
--tag hkotel/mealie:frontend-${{ inputs.tag }} \
|
||||||
|
--platform linux/amd64,linux/arm64 .
|
||||||
|
|
||||||
|
build-backend:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Build Backend
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -44,10 +78,3 @@ jobs:
|
|||||||
--tag hkotel/mealie:api-${{ inputs.tag }} \
|
--tag hkotel/mealie:api-${{ inputs.tag }} \
|
||||||
--build-arg COMMIT=$(git rev-parse HEAD) \
|
--build-arg COMMIT=$(git rev-parse HEAD) \
|
||||||
--platform linux/amd64,linux/arm64 .
|
--platform linux/amd64,linux/arm64 .
|
||||||
|
|
||||||
- name: Build Frontend Image
|
|
||||||
working-directory: "frontend"
|
|
||||||
run: |
|
|
||||||
docker build --push --no-cache \
|
|
||||||
--tag hkotel/mealie:frontend-${{ inputs.tag }} \
|
|
||||||
--platform linux/amd64,linux/arm64 .
|
|
||||||
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -26,6 +26,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repository: hay-kot/mealie # The repository to scan.
|
repository: hay-kot/mealie # The repository to scan.
|
||||||
releases-only: true # We know that all relevant tags have a GitHub release for them.
|
releases-only: true # We know that all relevant tags have a GitHub release for them.
|
||||||
|
|
||||||
build-release:
|
build-release:
|
||||||
name: Build Tagged Release
|
name: Build Tagged Release
|
||||||
uses: ./.github/workflows/partial-builder.yml
|
uses: ./.github/workflows/partial-builder.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user