From 5f4d4aeb7396f88921c9eee67e4c7b806707cb6d Mon Sep 17 00:00:00 2001 From: edraft Date: Fri, 10 Jan 2025 12:27:12 +0100 Subject: [PATCH] Added redirector build --- .gitea/workflows/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index de6354a..1d48b26 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -30,6 +30,31 @@ jobs: - name: Push image run: | docker push git.sh-edraft.de/sh-edraft.de/open-redirect-api:$(cat version.txt) + + build-redirector: + runs-on: [runner] + container: git.sh-edraft.de/sh-edraft.de/act-runner:latest + steps: + - name: Clone Repository + uses: https://github.com/actions/checkout@v3 + with: + token: ${{ secrets.CI_ACCESS_TOKEN }} + + - name: Build docker + run: | + cd api + docker build -f dockerfile_redirector -t git.sh-edraft.de/sh-edraft.de/open-redirect-redirector:$(cat ../version.txt) . + + - name: Login to registry git.sh-edraft.de + uses: https://github.com/docker/login-action@v1 + with: + registry: git.sh-edraft.de + username: ${{ secrets.CI_USERNAME }} + password: ${{ secrets.CI_ACCESS_TOKEN }} + + - name: Push image + run: | + docker push git.sh-edraft.de/sh-edraft.de/open-redirect-redirector:$(cat version.txt) build-web: runs-on: [runner]