Fix missing rustc
This commit is contained in:
parent
d58f2b1bb2
commit
5e34e60a97
4 changed files with 6 additions and 3 deletions
|
@ -14,9 +14,10 @@ steps:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install binutils -y
|
- apt-get install binutils -y
|
||||||
- pip install pyinstaller
|
- pip install pyinstaller
|
||||||
|
- apt update && apt install rustc -y
|
||||||
- cd /drone/src && pip install -r requirements.txt && pyinstaller main.py
|
- cd /drone/src && pip install -r requirements.txt && pyinstaller main.py
|
||||||
- chmod 777 /drone/src/dist/main/main
|
- chmod 777 /drone/src/dist/main/main
|
||||||
- cd /drone/src/dist/main && tar cvfz /drone/src/AlwaysDungeons.tar.gz *
|
- cd /drone/src/dist/main && tar cvfz /drone/src/AlwaysDungeons.tar.gz *
|
||||||
- name: build and publish
|
- name: build and publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
pull: always
|
pull: always
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
FROM python:slim-bookworm
|
FROM python:slim-bookworm
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
RUN apt update && apt install -y rust-all
|
||||||
ADD AlwaysDungeons.tar.gz /data
|
ADD AlwaysDungeons.tar.gz /data
|
||||||
CMD ["/data/main"]
|
CMD ["/data/main"]
|
5
build.sh
5
build.sh
|
@ -5,15 +5,16 @@ ORG="askiiart"
|
||||||
NAME="discord-always-dungeons"
|
NAME="discord-always-dungeons"
|
||||||
PUSH="false"
|
PUSH="false"
|
||||||
|
|
||||||
|
|
||||||
# Apply patch for Docker
|
# Apply patch for Docker
|
||||||
git apply docker.patch
|
git apply docker.patch
|
||||||
|
|
||||||
# Build image
|
# Build image
|
||||||
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 *"
|
docker run -v .:/repo python /bin/sh -c "apt update && apt install -y rustc && 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)
|
ID=$(docker build . -q)
|
||||||
|
|
||||||
# Could just do -t on the build, but this makes it easier to expand if needed.
|
# Could just do -t on the build, but this makes it easier to expand if needed.
|
||||||
if [ $ID == "true" ]; then
|
if [ $ID == "true" && $PUSH="true" ]; then
|
||||||
docker tag ${ID} ${ORG}/${NAME}:latest
|
docker tag ${ID} ${ORG}/${NAME}:latest
|
||||||
docker push ${ORG}/${NAME}:latest
|
docker push ${ORG}/${NAME}:latest
|
||||||
else
|
else
|
||||||
|
|
0
generate.sh
Normal file
0
generate.sh
Normal file
Loading…
Reference in a new issue