From 2a38a11268702f3b665cadd3ca18cd2fb988f78c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 24 Aug 2025 16:07:06 +1200 Subject: [PATCH] Add .gitea/workflows/BuildTestPublish.yaml --- .gitea/workflows/BuildTestPublish.yaml | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/BuildTestPublish.yaml diff --git a/.gitea/workflows/BuildTestPublish.yaml b/.gitea/workflows/BuildTestPublish.yaml new file mode 100644 index 0000000..7039fd0 --- /dev/null +++ b/.gitea/workflows/BuildTestPublish.yaml @@ -0,0 +1,38 @@ +name: Build-Test-Publish +run-name: Build test and publish all tools + +on: [push] + +defaults: + run: + shell: bash + +jobs: + build: + strategy: + matrix: + platform: + - linux/amd64 + runs-on: ${{ matrix.platform }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Login to Gitea + uses: docker/login-action@v3 + with: + registry: gitea.jde.nz + username: DoesntMatter + password: ${{ secrets.DOCKER_PUSH_TOKEN }} + - name: Build + run: | + ./build.sh + - name: Test + run: | + ./test.sh + - name: Publish + run: | + SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \ + RELEASE_WRITE_TOKEN=${{ secrets.RELEASE_WRITE_TOKEN }} \ + GITEA_CONTAINER_NAME=${{ env.JOB_CONTAINER_NAME }} \ + ./publish.sh +