From dc2e7f45633ee3a61e6ee6e15d3699c28021289a Mon Sep 17 00:00:00 2001 From: maze Date: Mon, 23 Feb 2026 21:26:53 +0100 Subject: [PATCH] Refactor --- .gitea/workflows/build.yaml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6274070..9be487a 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -10,8 +10,10 @@ jobs: name: Test and lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 - - uses: actions/setup-go@v6 + - name: Checkout + uses: actions/checkout@v6 + - name: Setup Go + uses: actions/setup-go@v6 with: go-version-file: 'go.mod' check-latest: false @@ -45,6 +47,11 @@ jobs: ls -al $(readlink -f build/hamview-collector) - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."10.42.23.15:3000"] + http = true + insecure = true - name: Log into Docker Container Registry uses: docker/login-action@v3 with: @@ -53,14 +60,14 @@ jobs: - name: Log into Gitea Container Registry uses: docker/login-action@v3 with: - registry: ${{ vars.REGISTRY }} + registry: 10.42.23.15:3000 username: ${{ vars.DEPLOY_USER }} password: ${{ secrets.DEPLOY_TOKEN }} - name: Build and push collector container uses: docker/build-push-action@v6 with: push: true - tags: ${{ vars.REGISTRY }}/ham/hamview/collector:dev + tags: 10.42.23.15:3000/ham/hamview/collector:dev file: ./cmd/hamview-collector/Dockerfile context: . platforms: | @@ -109,6 +116,11 @@ jobs: readlink -f build/hamview-receiver-$GOARCH$GOARM - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."10.42.23.15:3000"] + http = true + insecure = true - name: Log into Docker Container Registry uses: docker/login-action@v3 with: @@ -117,14 +129,14 @@ jobs: - name: Log into Gitea Container Registry uses: docker/login-action@v3 with: - registry: ${{ vars.REGISTRY }} + registry: 10.42.23.15:3000 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:dev + tags: 10.42.23.15:3000/ham/hamview/receiver:dev file: ./cmd/hamview-receiver/Dockerfile context: . platforms: |