From 5493f2ba4165432d0d177429a74afe1b8485a90d Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Tue, 8 Apr 2025 18:29:14 +0200 Subject: [PATCH] Add .forgejo/workflows/build.yml --- .forgejo/workflows/build.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..b54b50f --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,39 @@ +name: docker-build + +on: + push: + branches: + - main + +permissions: write-all + +jobs: + release: + runs-on: docker + steps: + - uses: actions/forgejo-release@v2 + with: + direction: upload + url: https://git.h2-invent.com + repo: meetling/livekit-autoscaler + tag: 0.${{ github.run_number }} + token: ${{ secrets.GITHUB_TOKEN }} + docker-build: + runs-on: host + needs: + - release + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: git.h2-invent.com + username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: git.h2-invent.com/meetling/livekit-uploader:0.${{ github.run_number }},git.h2-invent.com/meetling/livekit-uploader:latest