mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
chore: refactor-docker-structure (#1948)
* move dockerfiles to dedicated folder * consolidate docker related files to docker dir * update CI references * experimental omni style container * update makefile commands * update references * fix whitespace * single container docs * update build paths * adds omni style build * set context
This commit is contained in:
parent
c4eebaccca
commit
e281f53488
22 changed files with 366 additions and 127 deletions
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
|
@ -58,7 +58,7 @@ jobs:
|
|||
port: ${{ secrets.DEMO_SERVER_PORT }}
|
||||
script_stop: true
|
||||
script: |
|
||||
cd ~/docker/mealie-next
|
||||
cd ~/docker/mealie
|
||||
docker-compose pull
|
||||
docker-compose down -v
|
||||
docker-compose up -d
|
||||
|
|
2
.github/workflows/partial-backend.yml
vendored
2
.github/workflows/partial-backend.yml
vendored
|
@ -70,7 +70,7 @@ jobs:
|
|||
run: |
|
||||
poetry run black . --check
|
||||
|
||||
- name: Lint (Flake8)
|
||||
- name: Lint (Ruff)
|
||||
run: |
|
||||
make backend-lint
|
||||
|
||||
|
|
38
.github/workflows/partial-builder.yml
vendored
38
.github/workflows/partial-builder.yml
vendored
|
@ -40,11 +40,10 @@ jobs:
|
|||
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 .
|
||||
--platform linux/amd64,linux/arm64 --file=./docker/frontend.Dockerfile .
|
||||
|
||||
build-backend:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -77,4 +76,37 @@ jobs:
|
|||
docker build --push --no-cache \
|
||||
--tag hkotel/mealie:api-${{ inputs.tag }} \
|
||||
--build-arg COMMIT=$(git rev-parse HEAD) \
|
||||
--platform linux/amd64,linux/arm64 .
|
||||
--platform linux/amd64,linux/arm64 --file=./docker/api.Dockerfile .
|
||||
|
||||
build-omni:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build Backend
|
||||
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 Omni-Image
|
||||
run: |
|
||||
docker build --push --no-cache \
|
||||
--tag hkotel/mealie:omni-${{ inputs.tag }} \
|
||||
--build-arg COMMIT=$(git rev-parse HEAD) \
|
||||
--platform linux/amd64,linux/arm64 --file=./docker/omni.Dockerfile .
|
||||
|
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
|
||||
- name: Build Dockerfile
|
||||
run: |
|
||||
docker build -t mealie .
|
||||
docker build -t mealie --file=./docker/api.Dockerfile .
|
||||
|
||||
- name: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@master
|
||||
|
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
|
||||
- name: Build Dockerfile
|
||||
run: |
|
||||
docker build -t mealie ./frontend/
|
||||
docker build -t mealie --file=./docker/frontend.Dockerfile .
|
||||
|
||||
- name: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@master
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue