added manual docker file
This commit is contained in:
parent
fd276bdb94
commit
80f4972d29
@ -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
11
discord-bot/Dockerfile
Normal 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
9
web/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY .output .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", "server/index.mjs" ]
|
Loading…
Reference in New Issue
Block a user