1
0
Fork 0
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:
Hayden 2022-12-31 10:01:15 -08:00 committed by GitHub
parent c4eebaccca
commit e281f53488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 366 additions and 127 deletions

View file

@ -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

View file

@ -70,7 +70,7 @@ jobs:
run: |
poetry run black . --check
- name: Lint (Flake8)
- name: Lint (Ruff)
run: |
make backend-lint

View file

@ -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 .

View file

@ -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

View file

@ -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