added ci
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 1m10s
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 1m10s
This commit is contained in:
parent
981de3d2e5
commit
2dcbced91e
28
.gitea/workflows/release.yaml
Normal file
28
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
name: Build and Publish
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build and Publish Discord Bot:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- run: npm install
|
||||
working-directory: ./discordbot
|
||||
|
||||
- uses: docker/login-action@v2
|
||||
with:
|
||||
registry: gitea.xeovalyte.dev
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- uses: docker/build-push-action@master
|
||||
with:
|
||||
context: ./discordbot
|
||||
push: true
|
||||
tags: latest
|
||||
|
7
discordbot/Dockerfile
Normal file
7
discordbot/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["node", "index.js"]
|
Loading…
Reference in New Issue
Block a user