1
0

remove docker build stuff

This commit is contained in:
2024-07-17 22:17:28 +02:00
parent ed1d993343
commit 6e802434db
3 changed files with 2 additions and 33 deletions

View File

@ -1,27 +0,0 @@
name: Role Wizard discord bot build and push
on:
push:
branches:
- release
jobs:
discord-bot-build:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Build
run: npm run dockerBuild
- name: Login to registry
uses: docker/login-action@v1
with:
registry: gitea.amundsson.eu
username: namundsson@gmail.com
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t gitea.amundsson.eu/n1jos/role-wizard-discord-bot:latest .
docker push gitea.amundsson.eu/n1jos/role-wizard-discord-bot:latest

View File

@ -1,3 +0,0 @@
FROM node:22
COPY build/ /home/node/app
ENTRYPOINT ["node", "build/index.js"]

View File

@ -6,10 +6,9 @@
"scripts": {
"clean": "rm -rf build",
"build": "tsc --build",
"register": "npx ts-node src/register-commands.ts",
"start": "yarn clean && yarn build && yarn register && yarn runBot",
"registerCommands": "npx ts-node src/register-commands.ts",
"start": "yarn clean && yarn build && yarn registerCommands && yarn runBot",
"startNoClean": "yarn build && yarn runBot",
"dockerBuild": "npm run clean && npm run build && yarn run register",
"runBot": "node build/index.js"
},
"keywords": [],