From cafb1b1ac5219d827779e3bf95be42ecda1b40d1 Mon Sep 17 00:00:00 2001 From: maze Date: Mon, 23 Feb 2026 16:49:13 +0100 Subject: [PATCH] Bypass loadbalancer for registry push --- .gitea/workflows/build.yaml | 49 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1a78b6b..abea1e6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,33 +6,26 @@ permissions: contents: read jobs: -# prepare: -# name: Prepare -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: actions/checkout@v6 -# - name: Setup Go -# uses: actions/setup-go@v6 -# with: -# go-version-file: 'go.mod' -# check-latest: false -# - name: Download modules -# run: go mod download -# - name: Make build directory -# run: mkdir -p build && readlink -f build -# -# test: -# runs-on: ubuntu-latest -# steps: -# - name: Lint -# uses: golangci/golangci-lint-action@v9 -# with: -# go-version: ${{ matrix.go }} -# version: v2.6 + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Setup Go + uses: actions/setup-go@v6 + with: + go-version-file: 'go.mod' + check-latest: false + - name: Lint + uses: golangci/golangci-lint-action@v9 + with: + go-version: ${{ matrix.go }} + version: v2.6 + build: name: Build runs-on: ubuntu-latest + needs: test steps: - name: Checkout uses: actions/checkout@v6 @@ -78,11 +71,17 @@ jobs: registry: ${{ vars.REGISTRY }} username: ${{ vars.DEPLOY_USER }} password: ${{ secrets.DEPLOY_TOKEN }} + - name: Log into Gitea Container Registry (internal) + uses: docker/login-action@v3 + with: + registry: ${{ vars.REGISTRY_PRIVATE }} + username: ${{ vars.DEPLOY_USER }} + password: ${{ secrets.DEPLOY_TOKEN }} - name: Build and push receiver container uses: docker/build-push-action@v6 with: push: true - tags: ${{ vars.REGISTRY }}/ham/hamview-receiver:latest + tags: ${{ vars.REGISTRY_PRIVATE }}/ham/hamview-receiver:latest context: . platforms: | linux/amd64