External volumes for docker
All checks were successful
Production deployment / Build (push) Successful in 2m29s
Production deployment / Deploying (push) Successful in 19s

This commit was merged in pull request #4.
This commit is contained in:
2023-09-10 00:22:15 +02:00
parent faf61e2b3b
commit 7c930d3020
2 changed files with 1 additions and 2 deletions

View File

@@ -51,5 +51,5 @@ jobs:
docker rm ${{ env.DOCKER_IMAGE_NAME }} || true
docker image rm \${PREVIOUS_IMAGE} || true
docker pull gitea.skydust.fr/${{ secrets.DOCKER_USER }}/${{ env.DOCKER_IMAGE_NAME }}:latest
docker run --restart=always -d --name="${{ env.DOCKER_IMAGE_NAME }}" gitea.skydust.fr/${{ secrets.DOCKER_USER }}/${{ env.DOCKER_IMAGE_NAME }}:latest
docker run --restart=always -v /opt/JdrBot/Songs:/app/Songs -v /opt/JdrBot/logs:/app/logs -d --name="${{ env.DOCKER_IMAGE_NAME }}" gitea.skydust.fr/${{ secrets.DOCKER_USER }}/${{ env.DOCKER_IMAGE_NAME }}:latest
EOF

View File

@@ -8,7 +8,6 @@ LABEL authors="skydust"
WORKDIR /app
COPY --from=builder /app/build/libs/JdrBot-all.jar /app/JdrBot.jar
COPY Songs /app/Songs
COPY start.sh /app
CMD ["/bin/bash","./start.sh"]