File tree 3 files changed +20
-7
lines changed
3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 1
1
.gitattributes ! filter ! diff
2
- config.env filter =git-crypt diff =git-crypts
2
+ config.env filter =git-crypt diff =git-crypt
Original file line number Diff line number Diff line change 21
21
with :
22
22
fetch-depth : 0
23
23
24
+ - name : Install git-crypt and decrypt repository
25
+ env :
26
+ GIT_CRYPT_KEY : ${{ secrets.GIT_CRYPT_KEY }}
27
+ run : |
28
+ sudo apt-get update && \
29
+ sudo apt-get install -y git-crypt && \
30
+ echo "$GIT_CRYPT_KEY" | base64 -d | git-crypt unlock - && \
31
+ git-crypt status -e
32
+
24
33
- name : Deploy to Heroku
25
34
uses : akhileshns/heroku-deploy@v3.13.15
26
35
with :
Original file line number Diff line number Diff line change @@ -6,16 +6,20 @@ RUN python -m pip install --no-cache-dir -U pip wheel
6
6
7
7
COPY ./requirements.txt /tmp/
8
8
9
- RUN python -OO -m pip wheel --no-cache-dir --wheel-dir=/tmp/wheels -r /tmp/requirements.txt
9
+ RUN python -OO -m pip wheel --no-cache-dir --wheel-dir=/tmp/wheels -r /tmp/requirements.txt
10
10
11
11
FROM base
12
- COPY --from=builder /tmp/wheels /tmp/wheels
13
12
14
- RUN python -m pip install --no-cache --no-index /tmp/wheels/* && \
15
- rm -rf /tmp/wheels && \
16
- mkdir -p /app/src/
13
+ COPY --from=builder /tmp/wheels /tmp/wheels
17
14
18
15
ADD ./src /app/src
19
16
ADD ./config.env /app/config.env
20
17
21
- CMD APP_RUN_MODE=PROD python -OO -B /app/src/main.py
18
+ WORKDIR /app/src
19
+
20
+ RUN python -m pip install --no-cache --no-index /tmp/wheels/* && \
21
+ rm -rf /tmp/wheels
22
+
23
+ ENV APP_RUN_MODE=PROD
24
+ ENTRYPOINT [ "python" ]
25
+ CMD [ "-OO" , "-B" ,"main.py" ]
You can’t perform that action at this time.
0 commit comments