Files
taiqane 17f7dc2e0d
/ build-docker-release (push) Has been skipped
/ build-docker-nightly (push) Successful in 7s
/ build (push) Successful in 16s
Revert "ci: use job token instead of pat"
This reverts commit 12af1b2981.
2026-04-29 00:50:08 +02:00

46 lines
1.5 KiB
YAML

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_name == '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