added manual docker file
Some checks failed
Build and Deploy / Deploy Web (push) Failing after 53s
Build and Deploy / Deploy Discord Bot (push) Failing after 35s

This commit is contained in:
Xeovalyte 2023-05-12 14:41:28 +02:00
parent fd276bdb94
commit 80f4972d29
3 changed files with 23 additions and 7 deletions

View File

@ -28,10 +28,8 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/polarcraft-web:latest --load --platform=linux/amd64 .
working-directory: ./web
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/polarcraft-web:latest -f ./web/Dockerfile --load --platform=linux/amd64 .
- run: docker push gitea.xeovalyte.dev/xeovalyte/polarcraft-web:latest
working-directory: ./web
Deploy Discord Bot:
runs-on: ubuntu-latest
@ -57,7 +55,5 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/polarcraft-web:latest --load --platform=linux/amd64 .
working-directory: ./discord-bot
- run: docker push gitea.xeovalyte.dev/xeovalyte/polarcraft-web:latest
working-directory: ./discord-bot
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/polarcraft-discord:latest -f ./discord-bot/Dockerfile --load --platform=linux/amd64 .
- run: docker push gitea.xeovalyte.dev/xeovalyte/polarcraft-discord:latest

11
discord-bot/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:18-alpine
WORKDIR /usr/src/app
COPY . .
RUN npm install
EXPOSE 3000
CMD [ "node", "index.js" ]

9
web/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:18-alpine
WORKDIR /usr/src/app
COPY .output .
EXPOSE 3000
CMD [ "node", "server/index.mjs" ]