File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,10 @@ jobs:
19
19
SSH_PRIVATE_KEY : ${{ secrets.VPS_SSH_PRIVATE_KEY }}
20
20
REMOTE_HOST : ${{ secrets.VPS_HOST }}
21
21
REMOTE_USER : ${{ secrets.VPS_USER }}
22
- TARGET : " ~ "
22
+ TARGET : ${{ secrets.VPS_TARGET }}
23
23
SCRIPT_AFTER : |
24
- cp ~/config.py ~/PygameCommunityBot/config.py
25
- cp ~/.env ~/PygameCommunityBot/.env
26
- cd ~/PygameCommunityBot
24
+ cp ~/config.py config.py
25
+ cp ~/.env .env
27
26
docker compose stop
28
27
docker compose rm -f
29
28
sleep 60
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ RUN apt-get update \
21
21
22
22
COPY ./pyproject.toml ./requirements.txt ./
23
23
24
- FROM builder-base AS pipinstall
25
-
26
24
RUN mkdir $VENV_PATH \
27
25
&& python -m venv $VENV_PATH \
28
26
&& . $VENV_PATH/bin/activate \
@@ -31,7 +29,7 @@ RUN mkdir $VENV_PATH \
31
29
32
30
FROM python-base AS runtime
33
31
34
- COPY --from=pipinstall $VENV_PATH $VENV_PATH
32
+ COPY --from=builder-base $VENV_PATH $VENV_PATH
35
33
36
34
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
37
35
RUN chmod +x /docker-entrypoint.sh
You can’t perform that action at this time.
0 commit comments