Skip to content

Commit 7936080

Browse files
committed
Pull modmail-dev#3272 + lock dependencies
1 parent b84bbf2 commit 7936080

File tree

3 files changed

+20
-129
lines changed

3 files changed

+20
-129
lines changed

.github/workflows/docker-image.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ name: Create and publish a Docker image
33

44
on:
55
push:
6-
branches: ['main', 'develop']
6+
branches:
7+
- 'main'
8+
- 'develop'
9+
tags:
10+
- 'v*'
11+
pull_request:
12+
branches:
13+
- 'develop'
714

815
env:
916
REGISTRY: ghcr.io
@@ -32,6 +39,16 @@ jobs:
3239
uses: docker/metadata-action@v4
3340
with:
3441
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
tags: |
43+
type=schedule,pattern=nightly
44+
type=semver,pattern={{version}}
45+
type=semver,pattern={{major}}.{{minor}}
46+
type=semver,pattern={{major}}
47+
type=ref,event=branch
48+
type=ref,event=pr
49+
type=sha
50+
# set latest tag for stable releases
51+
type=raw,value=latest,enable=${{ github.event.release.prerelease == false }}
3552
3653
- name: Build and push Docker image
3754
uses: docker/build-push-action@v3

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apk update && apk add --virtual build-dependencies build-base gcc libffi-dev
1111
RUN pip install pipenv
1212

1313
# Install python dependencies in /.venv
14-
COPY Pipfile Pipfile.lock .
14+
COPY Pipfile Pipfile.lock /
1515
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy
1616

1717
FROM base AS runtime

Pipfile.lock

Lines changed: 1 addition & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)