another one

This commit is contained in:
Hayden 2021-01-16 21:05:22 -09:00
commit 3b7fac40f6
2 changed files with 31 additions and 7 deletions

View file

@ -9,17 +9,41 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
#
# Checkout
#
- name: checkout code - name: checkout code
uses: actions/checkout@v2 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 - name: install buildx
id: buildx id: buildx
uses: crazy-max/ghaction-docker-buildx@v1 uses: docker/setup-buildx-action@v1
with: with:
version: latest install: true
- name: login to docker hub #
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin # 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 - name: build the image
run: | run: |
docker buildx build --push \ docker build --push \
--tag your-username/multiarch-example:latest \ --tag hkotel/mealie:dev \
--platform linux/amd64,linux/arm/v7,linux/arm64 . --platform linux/amd64,linux/arm/v7,linux/arm64 .

View file

@ -18,7 +18,7 @@ RUN apt-get update -y && \
ln -s /opt/poetry/bin/poetry && \ ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false poetry config virtualenvs.create false
COPY ./pyproject.toml ./app/poetry.lock* ./ COPY ./pyproject.toml ./app/poetry.lock* /app/
COPY ./mealie /app COPY ./mealie /app
RUN poetry install --no-root --no-dev RUN poetry install --no-root --no-dev