diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..43350a5 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fc52aa3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM node:22 +COPY build/ /home/node/app \ No newline at end of file