1
0

add dockerfile and build yaml

This commit is contained in:
2024-05-31 22:39:32 +02:00
parent 71b8b5d9f9
commit f90798a363
2 changed files with 29 additions and 0 deletions

View 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
View File

@ -0,0 +1,2 @@
FROM node:22
COPY build/ /home/node/app