Skip to content

Commit

Permalink
Fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Nov 28, 2024
1 parent 760a4bb commit dcefab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/modoboa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
OIDC_RSA_PRIVATE_KEY: ${{ vars.OIDC_RSA_PRIVATE_KEY }}

- name: Upload coverage result
if: ${{ matrix.python-version == '3.11' && matrix.database == 'postgres' }}
if: ${{ matrix.python-version == '3.12' && matrix.database == 'postgres' }}
uses: actions/upload-artifact@v4
with:
name: coverage-results
Expand Down
9 changes: 5 additions & 4 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM python:3.12-alpine as base
FROM python:3.12-alpine AS base

MAINTAINER Antoine Nguyen <tonio@ngyn.org>
LABEL org.opencontainers.image.authors="Antoine Nguyen <tonio@ngyn.org>"
ENV VIRTUAL_ENV=/opt/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

FROM base as build
FROM base AS build

RUN apk add --update openssl librrd python3-dev libffi-dev gcc g++ musl-dev libxml2-dev libxslt-dev \
libressl-dev jpeg-dev rrdtool-dev file make gettext freetype-dev cairo-dev cargo \
Expand All @@ -16,7 +16,8 @@ COPY test-requirements.txt /tmp
COPY dev-requirements.txt /tmp
RUN python -m pip install -U pip
RUN pip install -r requirements.txt -r test-requirements.txt -r dev-requirements.txt
FROM base as run

FROM base AS run
COPY docker/doveadm /usr/local/bin
RUN chmod +x /usr/local/bin/doveadm
COPY --from=build $VIRTUAL_ENV $VIRTUAL_ENV
Expand Down

0 comments on commit dcefab7

Please sign in to comment.