add dockerfile and build yaml
This commit is contained in:
27
.gitea/workflows/build.yaml
Normal file
27
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
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
|
2
Dockerfile
Normal file
2
Dockerfile
Normal file
@ -0,0 +1,2 @@
|
||||
FROM node:22
|
||||
COPY build/ /home/node/app
|
Reference in New Issue
Block a user