Polarcraft/.gitea/workflows/release.yaml

34 lines
741 B
YAML
Raw Normal View History

2023-08-11 11:43:14 +02:00
name: Build and Publish
2023-08-11 12:01:53 +02:00
on:
push:
branches:
- 'main'
2023-08-11 11:43:14 +02:00
jobs:
Build and Publish Discord Bot:
runs-on: ubuntu-latest
2023-08-11 11:46:17 +02:00
container:
image: catthehacker/ubuntu:act-latest
2023-08-11 11:43:14 +02:00
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 }}
2023-08-11 11:55:07 +02:00
password: ${{ secrets.DOCKER_PASSWORD }}
2023-08-11 11:43:14 +02:00
- uses: docker/build-push-action@master
with:
context: ./discordbot
push: true
2023-08-11 11:51:11 +02:00
tags: gitea.xeovalyte.dev/xeovalyte/polarcraft:latest
2023-08-11 11:43:14 +02:00