Files
discord-webhook-proxy/.gitea/workflows/build-and-deploy.yml
T
taiqane 12af1b2981
/ build (push) Successful in 17s
/ build-docker-release (push) Has been skipped
/ build-docker-nightly (push) Failing after 5s
ci: use job token instead of pat
2026-04-29 00:43:12 +02:00

50 lines
1.5 KiB
YAML

on: [ push ]
permissions:
contents: read
packages: write
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: ${{ gitea.actor }}
password: ${{ secrets.GITEA_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: ${{ gitea.actor }}
password: ${{ secrets.GITEA_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