mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
docker hub test
This commit is contained in:
parent
d06339cefd
commit
2d4b775cdc
6 changed files with 35 additions and 3 deletions
31
.github/workflows/dockerbuild.dev.yml
vendored
Normal file
31
.github/workflows/dockerbuild.dev.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: ci-dev
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- cd
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile.dev
|
||||||
|
push: true
|
||||||
|
tags: hkotel/mealie:cd-test
|
||||||
|
build-args: |
|
||||||
|
- name: Image digest
|
||||||
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
0
.github/workflows/dockerbuild.yml
vendored
Normal file
0
.github/workflows/dockerbuild.yml
vendored
Normal file
1
.github/workflows/pytest.yml
vendored
1
.github/workflows/pytest.yml
vendored
|
@ -53,4 +53,3 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
pytest mealie/tests/
|
pytest mealie/tests/
|
||||||
coverage report
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ docker container run \
|
||||||
-e db_type='sql' \
|
-e db_type='sql' \
|
||||||
-p 9000:80 \
|
-p 9000:80 \
|
||||||
-v `pwd`:'/app/data/' \
|
-v `pwd`:'/app/data/' \
|
||||||
hkotel/mealie:arm-dev
|
hkotel/mealie:dev
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -128,4 +128,4 @@ def default_theme_init():
|
||||||
default_theme.save_to_db()
|
default_theme.save_to_db()
|
||||||
|
|
||||||
|
|
||||||
default_theme_init()
|
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from app_config import REQUIRED_DIRS
|
from app_config import REQUIRED_DIRS
|
||||||
|
from services.settings_services import default_theme_init
|
||||||
|
|
||||||
CWD = Path(__file__).parent
|
CWD = Path(__file__).parent
|
||||||
|
|
||||||
|
|
||||||
def pre_start():
|
def pre_start():
|
||||||
ensure_dirs()
|
ensure_dirs()
|
||||||
|
default_theme_init()
|
||||||
|
|
||||||
|
|
||||||
def ensure_dirs():
|
def ensure_dirs():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue