ci: add gitea actions

This commit is contained in:
2026-04-29 00:19:02 +02:00
parent ceb95868d0
commit 1f8135c7e6
+46
View File
@@ -0,0 +1,46 @@
on: [ push ]
jobs:
build:
runs-on: debian-latest
steps:
- name: Checkout the git repository
uses: actions/checkout@v5
- name: Build project
run: mvn clean package -DskipTests
build-docker-nightly:
if: gitea.ref == 'refs/head/main'
needs: build
runs-on: debian-latest-amd
steps:
- name: Checkout the git repository
uses: actions/checkout@v5
- name: Authenticate at container registry
uses: docker/login-action@v4
with:
registry: viziona.dev
username: ${{ vars.DOCKER_PUSH_USER }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Build docker image
run: docker build -t viziona.dev/taiqane/discord-webhook-proxy:nightly .
- name: Push to docker registry
run: docker push --all-tags viziona.dev/taiqane/discord-webhook-proxy
build-docker-release:
if: startsWith(gitea.ref, 'refs/tags/v')
needs: build
runs-on: debian-latest-amd
steps:
- name: Checkout the git repository
uses: actions/checkout@v5
- name: Authenticate at container registry
uses: docker/login-action@v4
with:
registry: viziona.dev
username: ${{ vars.DOCKER_PUSH_USER }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Build docker image
run: docker build -t viziona.dev/taiqane/discord-webhook-proxy:${{ gitea.ref_name }} .
- name: Push to docker registry
run: docker push --all-tags viziona.dev/taiqane/discord-webhook-proxy