Re-add docker patch
This commit is contained in:
parent
f82aa8b4bb
commit
a68832f68c
2 changed files with 6 additions and 4 deletions
|
@ -5,6 +5,7 @@ steps:
|
|||
- name: Make semi-static build with pyinstaller (NOT actually static)
|
||||
image: python:latest
|
||||
commands:
|
||||
- git apply docker.patch
|
||||
- apt-get update
|
||||
- apt-get install binutils -y
|
||||
- pip install pyinstaller
|
||||
|
|
|
@ -4,11 +4,12 @@ ORG="askiiart"
|
|||
NAME="discord-always-dungeons"
|
||||
|
||||
# Apply patch for Docker
|
||||
docker run -v .:/repo python /bin/sh -c "cd /repo && pip install -r requirements.txt && apt-get update && apt-get install binutils -y && pip install pyinstaller && pyinstaller main.py && cd /repo/dist/main && chmod -R 777 /repo/dist/main && tar cvfz /repo/AlwaysDungeons.tar.gz *"
|
||||
git apply docker.patch
|
||||
|
||||
# Build image
|
||||
#ID=$(docker build . -q)
|
||||
docker run -v .:/repo python /bin/sh -c "cd /repo && pip install -r requirements.txt && apt-get update && apt-get install binutils -y && pip install pyinstaller && pyinstaller main.py && cd /repo/dist/main && chmod -R 777 /repo/dist/main && tar cvfz /repo/AlwaysDungeons.tar.gz *"
|
||||
ID=$(docker build . -q)
|
||||
|
||||
# Could just do -t on the build, but this makes it easier to expand if needed.
|
||||
#docker tag ${ID} ${ORG}/${NAME}:latest
|
||||
#docker push ${ORG}/${NAME}:latest
|
||||
docker tag ${ID} ${ORG}/${NAME}:latest
|
||||
docker push ${ORG}/${NAME}:latest
|
||||
|
|
Loading…
Reference in a new issue