Bypass loadbalancer for registry push
Some checks failed
Test and build / test (push) Successful in 2m4s
Test and build / Build (push) Has been cancelled

This commit is contained in:
2026-02-23 16:49:13 +01:00
parent 35723ad944
commit cafb1b1ac5

View File

@@ -6,33 +6,26 @@ permissions:
contents: read contents: read
jobs: jobs:
# prepare: test:
# name: Prepare runs-on: ubuntu-latest
# runs-on: ubuntu-latest steps:
# steps: - name: Checkout
# - name: Checkout uses: actions/checkout@v6
# uses: actions/checkout@v6 - name: Setup Go
# - name: Setup Go uses: actions/setup-go@v6
# uses: actions/setup-go@v6 with:
# with: go-version-file: 'go.mod'
# go-version-file: 'go.mod' check-latest: false
# check-latest: false - name: Lint
# - name: Download modules uses: golangci/golangci-lint-action@v9
# run: go mod download with:
# - name: Make build directory go-version: ${{ matrix.go }}
# run: mkdir -p build && readlink -f build version: v2.6
#
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Lint
# uses: golangci/golangci-lint-action@v9
# with:
# go-version: ${{ matrix.go }}
# version: v2.6
build: build:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -78,11 +71,17 @@ jobs:
registry: ${{ vars.REGISTRY }} registry: ${{ vars.REGISTRY }}
username: ${{ vars.DEPLOY_USER }} username: ${{ vars.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_TOKEN }} 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 - name: Build and push receiver container
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
push: true push: true
tags: ${{ vars.REGISTRY }}/ham/hamview-receiver:latest tags: ${{ vars.REGISTRY_PRIVATE }}/ham/hamview-receiver:latest
context: . context: .
platforms: | platforms: |
linux/amd64 linux/amd64