remove docker build stuff
This commit is contained in:
@ -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
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM node:22
|
|
||||||
COPY build/ /home/node/app
|
|
||||||
ENTRYPOINT ["node", "build/index.js"]
|
|
@ -6,10 +6,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf build",
|
"clean": "rm -rf build",
|
||||||
"build": "tsc --build",
|
"build": "tsc --build",
|
||||||
"register": "npx ts-node src/register-commands.ts",
|
"registerCommands": "npx ts-node src/register-commands.ts",
|
||||||
"start": "yarn clean && yarn build && yarn register && yarn runBot",
|
"start": "yarn clean && yarn build && yarn registerCommands && yarn runBot",
|
||||||
"startNoClean": "yarn build && yarn runBot",
|
"startNoClean": "yarn build && yarn runBot",
|
||||||
"dockerBuild": "npm run clean && npm run build && yarn run register",
|
|
||||||
"runBot": "node build/index.js"
|
"runBot": "node build/index.js"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
Reference in New Issue
Block a user