diff --git a/.github/workflows/dockerbuild.dev.yml b/.github/workflows/dockerbuild.dev.yml index 97f81265c..c11eee2e7 100644 --- a/.github/workflows/dockerbuild.dev.yml +++ b/.github/workflows/dockerbuild.dev.yml @@ -9,17 +9,41 @@ jobs: build: runs-on: ubuntu-latest steps: + # + # Checkout + # - name: checkout code uses: actions/checkout@v2 + # + # Setup QEMU + # + - name: Set up QEMU + id: qemu + uses: docker/setup-qemu-action@v1 + with: + image: tonistiigi/binfmt:latest + platforms: all + # + # Setup Buildx + # - name: install buildx id: buildx - uses: crazy-max/ghaction-docker-buildx@v1 + uses: docker/setup-buildx-action@v1 with: - version: latest - - name: login to docker hub - run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin + install: true + # + # Login to Docker Hub + # + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + # + # Build + # - name: build the image run: | - docker buildx build --push \ - --tag your-username/multiarch-example:latest \ + docker build --push \ + --tag hkotel/mealie:dev \ --platform linux/amd64,linux/arm/v7,linux/arm64 . diff --git a/Dockerfile b/Dockerfile index d0d3f5449..b1cdc4f9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN apt-get update -y && \ ln -s /opt/poetry/bin/poetry && \ poetry config virtualenvs.create false -COPY ./pyproject.toml ./app/poetry.lock* ./ +COPY ./pyproject.toml ./app/poetry.lock* /app/ COPY ./mealie /app RUN poetry install --no-root --no-dev