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