Skip to content

Commit

Permalink
Pull modmail-dev#3272 + lock dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed May 9, 2023
1 parent b84bbf2 commit 7936080
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 129 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ name: Create and publish a Docker image

on:
push:
branches: ['main', 'develop']
branches:
- 'main'
- 'develop'
tags:
- 'v*'
pull_request:
branches:
- 'develop'

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -32,6 +39,16 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule,pattern=nightly
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
type=ref,event=pr
type=sha
# set latest tag for stable releases
type=raw,value=latest,enable=${{ github.event.release.prerelease == false }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apk update && apk add --virtual build-dependencies build-base gcc libffi-dev
RUN pip install pipenv

# Install python dependencies in /.venv
COPY Pipfile Pipfile.lock .
COPY Pipfile Pipfile.lock /
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy

FROM base AS runtime
Expand Down
128 changes: 1 addition & 127 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7936080

Please sign in to comment.