diff --git a/.github/workflows/git-town.yml b/.github/workflows/git-town.yml deleted file mode 100644 index c54fcb449..000000000 --- a/.github/workflows/git-town.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Git Town - -on: - pull_request: - branches: - - '**' - -jobs: - git-town: - name: Display the branch stack - runs-on: ubuntu-latest - - permissions: - contents: read - pull-requests: write - - steps: - - uses: actions/checkout@v4 - - uses: git-town/action@v1 - with: - skip-single-stacks: true \ No newline at end of file diff --git a/.github/workflows/golang-test-darwin.yml b/.github/workflows/golang-test-darwin.yml deleted file mode 100644 index 4571ce753..000000000 --- a/.github/workflows/golang-test-darwin.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: "Darwin" - -on: - push: - branches: - - main - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - test: - name: "Client / Unit" - runs-on: macos-latest - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - name: Checkout code - uses: actions/checkout@v4 - - - name: Cache Go modules - uses: actions/cache@v4 - with: - path: ~/go/pkg/mod - key: macos-gotest-${{ hashFiles('**/go.sum') }} - restore-keys: | - macos-gotest- - macos-go- - - - name: Install libpcap - run: brew install libpcap - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Test - run: NETBIRD_STORE_ENGINE=${{ matrix.store }} CI=true go test -tags=devcert -exec 'sudo --preserve-env=CI,NETBIRD_STORE_ENGINE' -timeout 5m -p 1 $(go list ./... | grep -v /management) - diff --git a/.github/workflows/golang-test-freebsd.yml b/.github/workflows/golang-test-freebsd.yml deleted file mode 100644 index 32ceb36db..000000000 --- a/.github/workflows/golang-test-freebsd.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: "FreeBSD" - -on: - push: - branches: - - main - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - test: - name: "Client / Unit" - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - name: Test in FreeBSD - id: test - uses: vmactions/freebsd-vm@v1 - with: - usesh: true - copyback: false - release: "14.2" - prepare: | - pkg install -y curl pkgconf xorg - LATEST_VERSION=$(curl -s https://go.dev/VERSION?m=text|head -n 1) - GO_TARBALL="$LATEST_VERSION.freebsd-amd64.tar.gz" - GO_URL="https://go.dev/dl/$GO_TARBALL" - curl -vLO "$GO_URL" - tar -C /usr/local -vxzf "$GO_TARBALL" - - # -x - to print all executed commands - # -e - to faile on first error - run: | - set -e -x - export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin - time go build -o netbird client/main.go - # check all component except management, since we do not support management server on freebsd - time go test -timeout 1m -failfast ./base62/... - # NOTE: without -p1 `client/internal/dns` will fail because of `listen udp4 :33100: bind: address already in use` - time go test -timeout 8m -failfast -p 1 ./client/... - time go test -timeout 1m -failfast ./dns/... - time go test -timeout 1m -failfast ./encryption/... - time go test -timeout 1m -failfast ./formatter/... - time go test -timeout 1m -failfast ./client/iface/... - time go test -timeout 1m -failfast ./route/... - time go test -timeout 1m -failfast ./sharedsock/... - time go test -timeout 1m -failfast ./signal/... - time go test -timeout 1m -failfast ./util/... - time go test -timeout 1m -failfast ./version/... diff --git a/.github/workflows/golang-test-linux.yml b/.github/workflows/golang-test-linux.yml deleted file mode 100644 index cbce3e6e4..000000000 --- a/.github/workflows/golang-test-linux.yml +++ /dev/null @@ -1,568 +0,0 @@ -name: Linux - -on: - push: - branches: - - main - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - build-cache: - name: "Build Cache" - runs-on: ubuntu-22.04 - outputs: - management: ${{ steps.filter.outputs.management }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - management: - - 'management/**' - - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache@v4 - id: cache - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - - - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: sudo apt update && sudo apt install -y -q libgtk-3-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev gcc-multilib libpcap-dev - - - name: Install 32-bit libpcap - if: steps.cache.outputs.cache-hit != 'true' - run: sudo dpkg --add-architecture i386 && sudo apt update && sudo apt-get install -y libpcap0.8-dev:i386 - - - name: Build client - if: steps.cache.outputs.cache-hit != 'true' - working-directory: client - run: CGO_ENABLED=1 go build . - - - name: Build client 386 - if: steps.cache.outputs.cache-hit != 'true' - working-directory: client - run: CGO_ENABLED=1 GOARCH=386 go build -o client-386 . - - - name: Build management - if: steps.cache.outputs.cache-hit != 'true' - working-directory: management - run: CGO_ENABLED=1 go build . - - - name: Build management 386 - if: steps.cache.outputs.cache-hit != 'true' - working-directory: management - run: CGO_ENABLED=1 GOARCH=386 go build -o management-386 . - - - name: Build signal - if: steps.cache.outputs.cache-hit != 'true' - working-directory: signal - run: CGO_ENABLED=1 go build . - - - name: Build signal 386 - if: steps.cache.outputs.cache-hit != 'true' - working-directory: signal - run: CGO_ENABLED=1 GOARCH=386 go build -o signal-386 . - - - name: Build relay - if: steps.cache.outputs.cache-hit != 'true' - working-directory: relay - run: CGO_ENABLED=1 go build . - - - name: Build relay 386 - if: steps.cache.outputs.cache-hit != 'true' - working-directory: relay - run: CGO_ENABLED=1 GOARCH=386 go build -o relay-386 . - - test: - name: "Client / Unit" - needs: [build-cache] - strategy: - fail-fast: false - matrix: - arch: [ '386','amd64' ] - runs-on: ubuntu-22.04 - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache/restore@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Install dependencies - run: sudo apt update && sudo apt install -y -q libgtk-3-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev gcc-multilib libpcap-dev - - - name: Install 32-bit libpcap - if: matrix.arch == '386' - run: sudo dpkg --add-architecture i386 && sudo apt update && sudo apt-get install -y libpcap0.8-dev:i386 - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Test - run: CGO_ENABLED=1 GOARCH=${{ matrix.arch }} CI=true go test -tags devcert -exec 'sudo' -timeout 10m -p 1 $(go list ./... | grep -v -e /management -e /signal -e /relay) - - test_client_on_docker: - name: "Client (Docker) / Unit" - needs: [build-cache] - runs-on: ubuntu-22.04 - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Get Go environment - id: go-env - run: | - echo "cache_dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT - echo "modcache_dir=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - - - name: Cache Go modules - uses: actions/cache/restore@v4 - id: cache-restore - with: - path: | - ${{ steps.go-env.outputs.cache_dir }} - ${{ steps.go-env.outputs.modcache_dir }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Run tests in container - env: - HOST_GOCACHE: ${{ steps.go-env.outputs.cache_dir }} - HOST_GOMODCACHE: ${{ steps.go-env.outputs.modcache_dir }} - run: | - CONTAINER_GOCACHE="/root/.cache/go-build" - CONTAINER_GOMODCACHE="/go/pkg/mod" - - docker run --rm \ - --cap-add=NET_ADMIN \ - --privileged \ - -v $PWD:/app \ - -w /app \ - -v "${HOST_GOCACHE}:${CONTAINER_GOCACHE}" \ - -v "${HOST_GOMODCACHE}:${CONTAINER_GOMODCACHE}" \ - -e CGO_ENABLED=1 \ - -e CI=true \ - -e DOCKER_CI=true \ - -e GOARCH=${GOARCH_TARGET} \ - -e GOCACHE=${CONTAINER_GOCACHE} \ - -e GOMODCACHE=${CONTAINER_GOMODCACHE} \ - golang:1.23-alpine \ - sh -c ' \ - apk update; apk add --no-cache \ - ca-certificates iptables ip6tables dbus dbus-dev libpcap-dev build-base; \ - go test -buildvcs=false -tags devcert -v -timeout 10m -p 1 $(go list -buildvcs=false ./... | grep -v -e /management -e /signal -e /relay -e /client/ui -e /upload-server) - ' - - test_relay: - name: "Relay / Unit" - needs: [build-cache] - strategy: - fail-fast: false - matrix: - arch: [ '386','amd64' ] - runs-on: ubuntu-22.04 - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: sudo apt update && sudo apt install -y gcc-multilib g++-multilib libc6-dev-i386 - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache/restore@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Test - run: | - CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \ - go test \ - -exec 'sudo' \ - -timeout 10m ./signal/... - - test_signal: - name: "Signal / Unit" - needs: [build-cache] - strategy: - fail-fast: false - matrix: - arch: [ '386','amd64' ] - runs-on: ubuntu-22.04 - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install dependencies - if: steps.cache.outputs.cache-hit != 'true' - run: sudo apt update && sudo apt install -y gcc-multilib g++-multilib libc6-dev-i386 - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache/restore@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Test - run: | - CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \ - go test \ - -exec 'sudo' \ - -timeout 10m ./signal/... - - test_management: - name: "Management / Unit" - needs: [ build-cache ] - strategy: - fail-fast: false - matrix: - arch: [ 'amd64' ] - store: [ 'sqlite', 'postgres', 'mysql' ] - runs-on: ubuntu-22.04 - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache/restore@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Login to Docker hub - if: matrix.store == 'mysql' && (github.repository == github.head.repo.full_name || !github.head_ref) - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: download mysql image - if: matrix.store == 'mysql' - run: docker pull mlsmaycon/warmed-mysql:8 - - - name: Test - run: | - CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \ - NETBIRD_STORE_ENGINE=${{ matrix.store }} \ - CI=true \ - go test -tags=devcert \ - -exec "sudo --preserve-env=CI,NETBIRD_STORE_ENGINE" \ - -timeout 20m ./management/... - - benchmark: - name: "Management / Benchmark" - needs: [ build-cache ] - if: ${{ needs.build-cache.outputs.management == 'true' || github.event_name != 'pull_request' }} - strategy: - fail-fast: false - matrix: - arch: [ 'amd64' ] - store: [ 'sqlite', 'postgres' ] - runs-on: ubuntu-22.04 - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache/restore@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Login to Docker hub - if: matrix.store == 'mysql' && (github.repository == github.head.repo.full_name || !github.head_ref) - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: download mysql image - if: matrix.store == 'mysql' - run: docker pull mlsmaycon/warmed-mysql:8 - - - name: Test - run: | - CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \ - NETBIRD_STORE_ENGINE=${{ matrix.store }} \ - CI=true \ - go test -tags devcert -run=^$ -bench=. \ - -exec 'sudo --preserve-env=CI,NETBIRD_STORE_ENGINE' \ - -timeout 20m ./management/... - - api_benchmark: - name: "Management / Benchmark (API)" - needs: [ build-cache ] - if: ${{ needs.build-cache.outputs.management == 'true' || github.event_name != 'pull_request' }} - strategy: - fail-fast: false - matrix: - arch: [ 'amd64' ] - store: [ 'sqlite', 'postgres' ] - runs-on: ubuntu-22.04 - steps: - - name: Create Docker network - run: docker network create promnet - - - name: Start Prometheus Pushgateway - run: docker run -d --name pushgateway --network promnet -p 9091:9091 prom/pushgateway - - - name: Start Prometheus (for Pushgateway forwarding) - run: | - echo ' - global: - scrape_interval: 15s - scrape_configs: - - job_name: "pushgateway" - static_configs: - - targets: ["pushgateway:9091"] - remote_write: - - url: ${{ secrets.GRAFANA_URL }} - basic_auth: - username: ${{ secrets.GRAFANA_USER }} - password: ${{ secrets.GRAFANA_API_KEY }} - ' > prometheus.yml - - docker run -d --name prometheus --network promnet \ - -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml \ - -p 9090:9090 \ - prom/prometheus - - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache/restore@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Login to Docker hub - if: matrix.store == 'mysql' && (github.repository == github.head.repo.full_name || !github.head_ref) - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: download mysql image - if: matrix.store == 'mysql' - run: docker pull mlsmaycon/warmed-mysql:8 - - - name: Test - run: | - CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \ - NETBIRD_STORE_ENGINE=${{ matrix.store }} \ - CI=true \ - GIT_BRANCH=${{ github.ref_name }} \ - go test -tags=benchmark \ - -run=^$ \ - -bench=. \ - -exec 'sudo --preserve-env=CI,NETBIRD_STORE_ENGINE,GIT_BRANCH,GITHUB_RUN_ID' \ - -timeout 20m ./management/... - - api_integration_test: - name: "Management / Integration" - needs: [ build-cache ] - if: ${{ needs.build-cache.outputs.management == 'true' || github.event_name != 'pull_request' }} - strategy: - fail-fast: false - matrix: - arch: [ 'amd64' ] - store: [ 'sqlite', 'postgres'] - runs-on: ubuntu-22.04 - steps: - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - - name: Checkout code - uses: actions/checkout@v4 - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache/restore@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-cache-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest-cache- - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Test - run: | - CGO_ENABLED=1 GOARCH=${{ matrix.arch }} \ - NETBIRD_STORE_ENGINE=${{ matrix.store }} \ - CI=true \ - go test -tags=integration \ - -exec 'sudo --preserve-env=CI,NETBIRD_STORE_ENGINE' \ - -timeout 20m ./management/... diff --git a/.github/workflows/golang-test-windows.yml b/.github/workflows/golang-test-windows.yml deleted file mode 100644 index d9ff0a84b..000000000 --- a/.github/workflows/golang-test-windows.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: "Windows" - -on: - push: - branches: - - main - pull_request: - -env: - downloadPath: '${{ github.workspace }}\temp' -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - test: - name: "Client / Unit" - runs-on: windows-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install Go - uses: actions/setup-go@v5 - id: go - with: - go-version: "1.23.x" - cache: false - - - name: Get Go environment - run: | - echo "cache=$(go env GOCACHE)" >> $env:GITHUB_ENV - echo "modcache=$(go env GOMODCACHE)" >> $env:GITHUB_ENV - - - name: Cache Go modules - uses: actions/cache@v4 - with: - path: | - ${{ env.cache }} - ${{ env.modcache }} - key: ${{ runner.os }}-gotest-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-gotest- - ${{ runner.os }}-go- - - - name: Download wintun - uses: carlosperate/download-file-action@v2 - id: download-wintun - with: - file-url: https://pkgs.netbird.io/wintun/wintun-0.14.1.zip - file-name: wintun.zip - location: ${{ env.downloadPath }} - sha256: '07c256185d6ee3652e09fa55c0b673e2624b565e02c4b9091c79ca7d2f24ef51' - - - name: Decompressing wintun files - run: tar -zvxf "${{ steps.download-wintun.outputs.file-path }}" -C ${{ env.downloadPath }} - - - run: mv ${{ env.downloadPath }}/wintun/bin/amd64/wintun.dll 'C:\Windows\System32\' - - - run: choco install -y sysinternals --ignore-checksums - - run: choco install -y mingw - - - run: PsExec64 -s -w ${{ github.workspace }} C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe env -w GOMODCACHE=${{ env.cache }} - - run: PsExec64 -s -w ${{ github.workspace }} C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe env -w GOCACHE=${{ env.modcache }} - - run: PsExec64 -s -w ${{ github.workspace }} C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe mod tidy - - run: echo "files=$(go list ./... | ForEach-Object { $_ } | Where-Object { $_ -notmatch '/management' })" >> $env:GITHUB_ENV - - - name: test - run: PsExec64 -s -w ${{ github.workspace }} cmd.exe /c "C:\hostedtoolcache\windows\go\${{ steps.go.outputs.go-version }}\x64\bin\go.exe test -tags=devcert -timeout 10m -p 1 ${{ env.files }} > test-out.txt 2>&1" - - name: test output - if: ${{ always() }} - run: Get-Content test-out.txt diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml deleted file mode 100644 index 7e6583cc6..000000000 --- a/.github/workflows/golangci-lint.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Lint -on: [pull_request] - -permissions: - contents: read - pull-requests: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - codespell: - name: codespell - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: codespell - uses: codespell-project/actions-codespell@v2 - with: - ignore_words_list: erro,clienta,hastable,iif,groupd,testin,groupe - skip: go.mod,go.sum - golangci: - strategy: - fail-fast: false - matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - include: - - os: macos-latest - display_name: Darwin - - os: windows-latest - display_name: Windows - - os: ubuntu-latest - display_name: Linux - name: ${{ matrix.display_name }} - runs-on: ${{ matrix.os }} - timeout-minutes: 15 - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Check for duplicate constants - if: matrix.os == 'ubuntu-latest' - run: | - ! awk '/const \(/,/)/{print $0}' management/server/activity/codes.go | grep -o '= [0-9]*' | sort | uniq -d | grep . - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - cache: false - - name: Install dependencies - if: matrix.os == 'ubuntu-latest' - run: sudo apt update && sudo apt install -y -q libgtk-3-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev libpcap-dev - - name: golangci-lint - uses: golangci/golangci-lint-action@v4 - with: - version: latest - args: --timeout=12m --out-format colored-line-number diff --git a/.github/workflows/install-script-test.yml b/.github/workflows/install-script-test.yml deleted file mode 100644 index 22d002a48..000000000 --- a/.github/workflows/install-script-test.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Test installation - -on: - push: - branches: - - main - pull_request: - paths: - - "release_files/install.sh" -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true -jobs: - test-install-script: - strategy: - fail-fast: false - max-parallel: 2 - matrix: - os: [ubuntu-latest, macos-latest] - skip_ui_mode: [true, false] - install_binary: [true, false] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: run install script - env: - SKIP_UI_APP: ${{ matrix.skip_ui_mode }} - USE_BIN_INSTALL: ${{ matrix.install_binary }} - GITHUB_TOKEN: ${{ secrets.RO_API_CALLER_TOKEN }} - run: | - [ "$SKIP_UI_APP" == "false" ] && export XDG_CURRENT_DESKTOP="none" - cat release_files/install.sh | sh -x - - - name: check cli binary - run: command -v netbird diff --git a/.github/workflows/mobile-build-validation.yml b/.github/workflows/mobile-build-validation.yml deleted file mode 100644 index 569956a54..000000000 --- a/.github/workflows/mobile-build-validation.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Mobile - -on: - push: - branches: - - main - pull_request: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - android_build: - name: "Android / Build" - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - - name: Setup Android SDK - uses: android-actions/setup-android@v3 - with: - cmdline-tools-version: 8512546 - - name: Setup Java - uses: actions/setup-java@v4 - with: - java-version: "11" - distribution: "adopt" - - name: NDK Cache - id: ndk-cache - uses: actions/cache@v4 - with: - path: /usr/local/lib/android/sdk/ndk - key: ndk-cache-23.1.7779620 - - name: Setup NDK - run: /usr/local/lib/android/sdk/cmdline-tools/7.0/bin/sdkmanager --install "ndk;23.1.7779620" - - name: install gomobile - run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20240404231514-09dbf07665ed - - name: gomobile init - run: gomobile init - - name: build android netbird lib - run: PATH=$PATH:$(go env GOPATH) gomobile bind -o $GITHUB_WORKSPACE/netbird.aar -javapkg=io.netbird.gomobile -ldflags="-X golang.zx2c4.com/wireguard/ipc.socketDirectory=/data/data/io.netbird.client/cache/wireguard -X github.com/netbirdio/netbird/version.version=buildtest" $GITHUB_WORKSPACE/client/android - env: - CGO_ENABLED: 0 - ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/23.1.7779620 - ios_build: - name: "iOS / Build" - runs-on: macos-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - - name: install gomobile - run: go install golang.org/x/mobile/cmd/gomobile@v0.0.0-20240404231514-09dbf07665ed - - name: gomobile init - run: gomobile init - - name: build iOS netbird lib - run: PATH=$PATH:$(go env GOPATH) gomobile bind -target=ios -bundleid=io.netbird.framework -ldflags="-X github.com/netbirdio/netbird/version.version=buildtest" -o ./NetBirdSDK.xcframework ./client/ios/NetBirdSDK - env: - CGO_ENABLED: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4fc7f3154..977703f20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,23 +55,23 @@ jobs: run: go mod tidy - name: check git status run: git --no-pager diff --exit-code - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login to Docker hub - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USER }} - password: ${{ secrets.DOCKER_TOKEN }} - - name: Log in to the GitHub container registry - if: github.event_name != 'pull_request' - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.CI_DOCKER_PUSH_GITHUB_TOKEN }} + # - name: Set up QEMU + # uses: docker/setup-qemu-action@v2 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 + # - name: Login to Docker hub + # if: github.event_name != 'pull_request' + # uses: docker/login-action@v1 + # with: + # username: ${{ secrets.DOCKER_USER }} + # password: ${{ secrets.DOCKER_TOKEN }} + # - name: Log in to the GitHub container registry + # if: github.event_name != 'pull_request' + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.CI_DOCKER_PUSH_GITHUB_TOKEN }} - name: Install OS build dependencies run: sudo apt update && sudo apt install -y -q gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml deleted file mode 100644 index e36e35a2d..000000000 --- a/.github/workflows/sync-main.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: sync main - -on: - push: - branches: - - main - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - trigger_sync_main: - runs-on: ubuntu-latest - steps: - - name: Trigger main branch sync - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: sync-main.yml - repo: ${{ secrets.UPSTREAM_REPO }} - token: ${{ secrets.NC_GITHUB_TOKEN }} - inputs: '{ "sha": "${{ github.sha }}" }' \ No newline at end of file diff --git a/.github/workflows/sync-tag.yml b/.github/workflows/sync-tag.yml deleted file mode 100644 index 1cc553b12..000000000 --- a/.github/workflows/sync-tag.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: sync tag - -on: - push: - tags: - - 'v*' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - trigger_sync_tag: - runs-on: ubuntu-latest - steps: - - name: Trigger release tag sync - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: sync-tag.yml - ref: main - repo: ${{ secrets.UPSTREAM_REPO }} - token: ${{ secrets.NC_GITHUB_TOKEN }} - inputs: '{ "tag": "${{ github.ref_name }}" }' \ No newline at end of file diff --git a/.github/workflows/test-infrastructure-files.yml b/.github/workflows/test-infrastructure-files.yml deleted file mode 100644 index e2f9e40c8..000000000 --- a/.github/workflows/test-infrastructure-files.yml +++ /dev/null @@ -1,310 +0,0 @@ -name: Test Infrastructure files - -on: - push: - branches: - - main - pull_request: - paths: - - 'infrastructure_files/**' - - '.github/workflows/test-infrastructure-files.yml' - - 'management/cmd/**' - - 'signal/cmd/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} - cancel-in-progress: true - -jobs: - test-docker-compose: - runs-on: ubuntu-latest - strategy: - matrix: - store: [ 'sqlite', 'postgres', 'mysql' ] - services: - postgres: - image: ${{ (matrix.store == 'postgres') && 'postgres' || '' }} - env: - POSTGRES_USER: netbird - POSTGRES_PASSWORD: postgres - POSTGRES_DB: netbird - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - ports: - - 5432:5432 - mysql: - image: ${{ (matrix.store == 'mysql') && 'mysql' || '' }} - env: - MYSQL_USER: netbird - MYSQL_PASSWORD: mysql - MYSQL_ROOT_PASSWORD: mysqlroot - MYSQL_DATABASE: netbird - options: >- - --health-cmd "mysqladmin ping --silent" - --health-interval 10s - --health-timeout 5s - ports: - - 3306:3306 - steps: - - name: Set Database Connection String - run: | - if [ "${{ matrix.store }}" == "postgres" ]; then - echo "NETBIRD_STORE_ENGINE_POSTGRES_DSN=host=$(hostname -I | awk '{print $1}') user=netbird password=postgres dbname=netbird port=5432" >> $GITHUB_ENV - else - echo "NETBIRD_STORE_ENGINE_POSTGRES_DSN==" >> $GITHUB_ENV - fi - if [ "${{ matrix.store }}" == "mysql" ]; then - echo "NETBIRD_STORE_ENGINE_MYSQL_DSN=netbird:mysql@tcp($(hostname -I | awk '{print $1}'):3306)/netbird" >> $GITHUB_ENV - else - echo "NETBIRD_STORE_ENGINE_MYSQL_DSN==" >> $GITHUB_ENV - fi - - - name: Install jq - run: sudo apt-get install -y jq - - - name: Install curl - run: sudo apt-get install -y curl - - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.23.x" - - - name: Cache Go modules - uses: actions/cache@v4 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - - name: Checkout code - uses: actions/checkout@v4 - - - name: cp setup.env - run: cp infrastructure_files/tests/setup.env infrastructure_files/ - - - name: run configure - working-directory: infrastructure_files - run: bash -x configure.sh - env: - CI_NETBIRD_DOMAIN: localhost - CI_NETBIRD_AUTH_CLIENT_ID: testing.client.id - CI_NETBIRD_AUTH_CLIENT_SECRET: testing.client.secret - CI_NETBIRD_AUTH_AUDIENCE: testing.ci - CI_NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT: https://example.eu.auth0.com/.well-known/openid-configuration - CI_NETBIRD_USE_AUTH0: true - CI_NETBIRD_MGMT_IDP: "none" - CI_NETBIRD_IDP_MGMT_CLIENT_ID: testing.client.id - CI_NETBIRD_IDP_MGMT_CLIENT_SECRET: testing.client.secret - CI_NETBIRD_AUTH_SUPPORTED_SCOPES: "openid profile email offline_access api email_verified" - CI_NETBIRD_STORE_CONFIG_ENGINE: ${{ matrix.store }} - NETBIRD_STORE_ENGINE_POSTGRES_DSN: ${{ env.NETBIRD_STORE_ENGINE_POSTGRES_DSN }} - NETBIRD_STORE_ENGINE_MYSQL_DSN: ${{ env.NETBIRD_STORE_ENGINE_MYSQL_DSN }} - CI_NETBIRD_MGMT_IDP_SIGNKEY_REFRESH: false - - - name: check values - working-directory: infrastructure_files/artifacts - env: - CI_NETBIRD_DOMAIN: localhost - CI_NETBIRD_AUTH_CLIENT_ID: testing.client.id - CI_NETBIRD_AUTH_CLIENT_SECRET: testing.client.secret - CI_NETBIRD_AUTH_AUDIENCE: testing.ci - CI_NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT: https://example.eu.auth0.com/.well-known/openid-configuration - CI_NETBIRD_USE_AUTH0: true - CI_NETBIRD_AUTH_SUPPORTED_SCOPES: "openid profile email offline_access api email_verified" - CI_NETBIRD_AUTH_AUTHORITY: https://example.eu.auth0.com/ - CI_NETBIRD_AUTH_JWT_CERTS: https://example.eu.auth0.com/.well-known/jwks.json - CI_NETBIRD_AUTH_TOKEN_ENDPOINT: https://example.eu.auth0.com/oauth/token - CI_NETBIRD_AUTH_DEVICE_AUTH_ENDPOINT: https://example.eu.auth0.com/oauth/device/code - CI_NETBIRD_AUTH_PKCE_AUTHORIZATION_ENDPOINT: https://example.eu.auth0.com/authorize - CI_NETBIRD_AUTH_REDIRECT_URI: "/peers" - CI_NETBIRD_TOKEN_SOURCE: "idToken" - CI_NETBIRD_AUTH_USER_ID_CLAIM: "email" - CI_NETBIRD_AUTH_DEVICE_AUTH_AUDIENCE: "super" - CI_NETBIRD_AUTH_DEVICE_AUTH_SCOPE: "openid email" - CI_NETBIRD_MGMT_IDP: "none" - CI_NETBIRD_IDP_MGMT_CLIENT_ID: testing.client.id - CI_NETBIRD_IDP_MGMT_CLIENT_SECRET: testing.client.secret - CI_NETBIRD_SIGNAL_PORT: 12345 - CI_NETBIRD_STORE_CONFIG_ENGINE: ${{ matrix.store }} - NETBIRD_STORE_ENGINE_POSTGRES_DSN: '${{ env.NETBIRD_STORE_ENGINE_POSTGRES_DSN }}$' - NETBIRD_STORE_ENGINE_MYSQL_DSN: '${{ env.NETBIRD_STORE_ENGINE_MYSQL_DSN }}$' - CI_NETBIRD_MGMT_IDP_SIGNKEY_REFRESH: false - CI_NETBIRD_TURN_EXTERNAL_IP: "1.2.3.4" - - run: | - set -x - grep AUTH_CLIENT_ID docker-compose.yml | grep $CI_NETBIRD_AUTH_CLIENT_ID - grep AUTH_CLIENT_SECRET docker-compose.yml | grep $CI_NETBIRD_AUTH_CLIENT_SECRET - grep AUTH_AUTHORITY docker-compose.yml | grep $CI_NETBIRD_AUTH_AUTHORITY - grep AUTH_AUDIENCE docker-compose.yml | grep $CI_NETBIRD_AUTH_AUDIENCE - grep AUTH_SUPPORTED_SCOPES docker-compose.yml | grep "$CI_NETBIRD_AUTH_SUPPORTED_SCOPES" - grep USE_AUTH0 docker-compose.yml | grep $CI_NETBIRD_USE_AUTH0 - grep NETBIRD_MGMT_API_ENDPOINT docker-compose.yml | grep "$CI_NETBIRD_DOMAIN:33073" - grep AUTH_REDIRECT_URI docker-compose.yml | grep $CI_NETBIRD_AUTH_REDIRECT_URI - grep AUTH_SILENT_REDIRECT_URI docker-compose.yml | egrep 'AUTH_SILENT_REDIRECT_URI=$' - grep $CI_NETBIRD_SIGNAL_PORT docker-compose.yml | grep ':80' - grep LETSENCRYPT_DOMAIN docker-compose.yml | egrep 'LETSENCRYPT_DOMAIN=$' - grep NETBIRD_TOKEN_SOURCE docker-compose.yml | grep $CI_NETBIRD_TOKEN_SOURCE - grep AuthUserIDClaim management.json | grep $CI_NETBIRD_AUTH_USER_ID_CLAIM - grep -A 3 DeviceAuthorizationFlow management.json | grep -A 1 ProviderConfig | grep Audience | grep $CI_NETBIRD_AUTH_DEVICE_AUTH_AUDIENCE - grep -A 3 DeviceAuthorizationFlow management.json | grep -A 1 ProviderConfig | grep Audience | grep $CI_NETBIRD_AUTH_DEVICE_AUTH_AUDIENCE - grep Engine management.json | grep "$CI_NETBIRD_STORE_CONFIG_ENGINE" - grep IdpSignKeyRefreshEnabled management.json | grep "$CI_NETBIRD_MGMT_IDP_SIGNKEY_REFRESH" - grep UseIDToken management.json | grep false - grep -A 1 IdpManagerConfig management.json | grep ManagerType | grep $CI_NETBIRD_MGMT_IDP - grep -A 3 IdpManagerConfig management.json | grep -A 1 ClientConfig | grep Issuer | grep $CI_NETBIRD_AUTH_AUTHORITY - grep -A 4 IdpManagerConfig management.json | grep -A 2 ClientConfig | grep TokenEndpoint | grep $CI_NETBIRD_AUTH_TOKEN_ENDPOINT - grep -A 5 IdpManagerConfig management.json | grep -A 3 ClientConfig | grep ClientID | grep $CI_NETBIRD_IDP_MGMT_CLIENT_ID - grep -A 6 IdpManagerConfig management.json | grep -A 4 ClientConfig | grep ClientSecret | grep $CI_NETBIRD_IDP_MGMT_CLIENT_SECRET - grep -A 7 IdpManagerConfig management.json | grep -A 5 ClientConfig | grep GrantType | grep client_credentials - grep -A 10 PKCEAuthorizationFlow management.json | grep -A 10 ProviderConfig | grep Audience | grep $CI_NETBIRD_AUTH_AUDIENCE - grep -A 10 PKCEAuthorizationFlow management.json | grep -A 10 ProviderConfig | grep ClientID | grep $CI_NETBIRD_AUTH_CLIENT_ID - grep -A 10 PKCEAuthorizationFlow management.json | grep -A 10 ProviderConfig | grep ClientSecret | grep $CI_NETBIRD_AUTH_CLIENT_SECRET - grep -A 10 PKCEAuthorizationFlow management.json | grep -A 10 ProviderConfig | grep AuthorizationEndpoint | grep $CI_NETBIRD_AUTH_PKCE_AUTHORIZATION_ENDPOINT - grep -A 10 PKCEAuthorizationFlow management.json | grep -A 10 ProviderConfig | grep TokenEndpoint | grep $CI_NETBIRD_AUTH_TOKEN_ENDPOINT - grep -A 10 PKCEAuthorizationFlow management.json | grep -A 10 ProviderConfig | grep Scope | grep "$CI_NETBIRD_AUTH_SUPPORTED_SCOPES" - grep -A 10 PKCEAuthorizationFlow management.json | grep -A 10 ProviderConfig | grep -A 3 RedirectURLs | grep "http://localhost:53000" - grep "external-ip" turnserver.conf | grep $CI_NETBIRD_TURN_EXTERNAL_IP - grep "NETBIRD_STORE_ENGINE_MYSQL_DSN=$NETBIRD_STORE_ENGINE_MYSQL_DSN" docker-compose.yml - grep NETBIRD_STORE_ENGINE_POSTGRES_DSN docker-compose.yml | egrep "$NETBIRD_STORE_ENGINE_POSTGRES_DSN" - # check relay values - grep "NB_EXPOSED_ADDRESS=rels://$CI_NETBIRD_DOMAIN:33445" docker-compose.yml - grep "NB_LISTEN_ADDRESS=:33445" docker-compose.yml - grep '33445:33445' docker-compose.yml - grep -A 10 'relay:' docker-compose.yml | egrep 'NB_AUTH_SECRET=.+$' - grep -A 7 Relay management.json | grep "rels://$CI_NETBIRD_DOMAIN:33445" - grep -A 7 Relay management.json | egrep '"Secret": ".+"' - grep DisablePromptLogin management.json | grep 'true' - grep LoginFlag management.json | grep 0 - - - name: Install modules - run: go mod tidy - - - name: check git status - run: git --no-pager diff --exit-code - - - name: Build management binary - working-directory: management - run: CGO_ENABLED=1 go build -o netbird-mgmt main.go - - - name: Build management docker image - working-directory: management - run: | - docker build -t netbirdio/management:latest . - - - name: Build signal binary - working-directory: signal - run: CGO_ENABLED=0 go build -o netbird-signal main.go - - - name: Build signal docker image - working-directory: signal - run: | - docker build -t netbirdio/signal:latest . - - - name: Build relay binary - working-directory: relay - run: CGO_ENABLED=0 go build -o netbird-relay main.go - - - name: Build relay docker image - working-directory: relay - run: | - docker build -t netbirdio/relay:latest . - - - name: run docker compose up - working-directory: infrastructure_files/artifacts - run: | - docker compose up -d - sleep 5 - docker compose ps - docker compose logs --tail=20 - - - name: test running containers - run: | - count=$(docker compose ps --format json | jq '. | select(.Name | contains("artifacts")) | .State' | grep -c running) - test $count -eq 5 || docker compose logs - working-directory: infrastructure_files/artifacts - - - name: test geolocation databases - working-directory: infrastructure_files/artifacts - run: | - sleep 30 - docker compose exec management ls -l /var/lib/netbird/ | grep -i GeoLite2-City_[0-9]*.mmdb - docker compose exec management ls -l /var/lib/netbird/ | grep -i geonames_[0-9]*.db - - test-getting-started-script: - runs-on: ubuntu-latest - steps: - - name: Install jq - run: sudo apt-get install -y jq - - - name: Checkout code - uses: actions/checkout@v4 - - - name: run script with Zitadel PostgreSQL - run: NETBIRD_DOMAIN=use-ip bash -x infrastructure_files/getting-started-with-zitadel.sh - - - name: test Caddy file gen postgres - run: test -f Caddyfile - - - name: test docker-compose file gen postgres - run: test -f docker-compose.yml - - - name: test management.json file gen postgres - run: test -f management.json - - - name: test turnserver.conf file gen postgres - run: | - set -x - test -f turnserver.conf - grep external-ip turnserver.conf - - - name: test zitadel.env file gen postgres - run: test -f zitadel.env - - - name: test dashboard.env file gen postgres - run: test -f dashboard.env - - - name: test relay.env file gen postgres - run: test -f relay.env - - - name: test zdb.env file gen postgres - run: test -f zdb.env - - - name: Postgres run cleanup - run: | - docker compose down --volumes --rmi all - rm -rf docker-compose.yml Caddyfile zitadel.env dashboard.env machinekey/zitadel-admin-sa.token turnserver.conf management.json zdb.env - - - name: run script with Zitadel CockroachDB - run: bash -x infrastructure_files/getting-started-with-zitadel.sh - env: - NETBIRD_DOMAIN: use-ip - ZITADEL_DATABASE: cockroach - - - name: test Caddy file gen CockroachDB - run: test -f Caddyfile - - - name: test docker-compose file gen CockroachDB - run: test -f docker-compose.yml - - - name: test management.json file gen CockroachDB - run: test -f management.json - - - name: test turnserver.conf file gen CockroachDB - run: | - set -x - test -f turnserver.conf - grep external-ip turnserver.conf - - - name: test zitadel.env file gen CockroachDB - run: test -f zitadel.env - - - name: test dashboard.env file gen CockroachDB - run: test -f dashboard.env - - - name: test relay.env file gen CockroachDB - run: test -f relay.env diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml deleted file mode 100644 index 77096790f..000000000 --- a/.github/workflows/update-docs.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: update docs - -on: - push: - tags: - - 'v*' - paths: - - 'management/server/http/api/openapi.yml' - -jobs: - trigger_docs_api_update: - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - - name: Trigger API pages generation - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: generate api pages - repo: netbirdio/docs - ref: "refs/heads/main" - token: ${{ secrets.SIGN_GITHUB_TOKEN }} - inputs: '{ "tag": "${{ github.ref }}" }' \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ca5eafa62..1324603ed 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -146,541 +146,541 @@ nfpms: scripts: postinstall: "release_files/post_install.sh" preremove: "release_files/pre_remove.sh" -dockers: - - image_templates: - - netbirdio/netbird:{{ .Version }}-amd64 - - ghcr.io/netbirdio/netbird:{{ .Version }}-amd64 - ids: - - netbird - goarch: amd64 - use: buildx - dockerfile: client/Dockerfile - build_flag_templates: - - "--platform=linux/amd64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/netbird:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/netbird:{{ .Version }}-arm64v8 - ids: - - netbird - goarch: arm64 - use: buildx - dockerfile: client/Dockerfile - build_flag_templates: - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/netbird:{{ .Version }}-arm - - ghcr.io/netbirdio/netbird:{{ .Version }}-arm - ids: - - netbird - goarch: arm - goarm: 6 - use: buildx - dockerfile: client/Dockerfile - build_flag_templates: - - "--platform=linux/arm" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" +# dockers: +# - image_templates: +# - netbirdio/netbird:{{ .Version }}-amd64 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-amd64 +# ids: +# - netbird +# goarch: amd64 +# use: buildx +# dockerfile: client/Dockerfile +# build_flag_templates: +# - "--platform=linux/amd64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/netbird:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-arm64v8 +# ids: +# - netbird +# goarch: arm64 +# use: buildx +# dockerfile: client/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/netbird:{{ .Version }}-arm +# - ghcr.io/netbirdio/netbird:{{ .Version }}-arm +# ids: +# - netbird +# goarch: arm +# goarm: 6 +# use: buildx +# dockerfile: client/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/netbird:{{ .Version }}-rootless-amd64 - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-amd64 - ids: - - netbird - goarch: amd64 - use: buildx - dockerfile: client/Dockerfile-rootless - build_flag_templates: - - "--platform=linux/amd64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/netbird:{{ .Version }}-rootless-arm64v8 - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm64v8 - ids: - - netbird - goarch: arm64 - use: buildx - dockerfile: client/Dockerfile-rootless - build_flag_templates: - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/netbird:{{ .Version }}-rootless-arm - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm - ids: - - netbird - goarch: arm - goarm: 6 - use: buildx - dockerfile: client/Dockerfile-rootless - build_flag_templates: - - "--platform=linux/arm" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/netbird:{{ .Version }}-rootless-amd64 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-amd64 +# ids: +# - netbird +# goarch: amd64 +# use: buildx +# dockerfile: client/Dockerfile-rootless +# build_flag_templates: +# - "--platform=linux/amd64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/netbird:{{ .Version }}-rootless-arm64v8 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm64v8 +# ids: +# - netbird +# goarch: arm64 +# use: buildx +# dockerfile: client/Dockerfile-rootless +# build_flag_templates: +# - "--platform=linux/arm64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/netbird:{{ .Version }}-rootless-arm +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm +# ids: +# - netbird +# goarch: arm +# goarm: 6 +# use: buildx +# dockerfile: client/Dockerfile-rootless +# build_flag_templates: +# - "--platform=linux/arm" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/relay:{{ .Version }}-amd64 - - ghcr.io/netbirdio/relay:{{ .Version }}-amd64 - ids: - - netbird-relay - goarch: amd64 - use: buildx - dockerfile: relay/Dockerfile - build_flag_templates: - - "--platform=linux/amd64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/relay:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/relay:{{ .Version }}-arm64v8 - ids: - - netbird-relay - goarch: arm64 - use: buildx - dockerfile: relay/Dockerfile - build_flag_templates: - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/relay:{{ .Version }}-arm - - ghcr.io/netbirdio/relay:{{ .Version }}-arm - ids: - - netbird-relay - goarch: arm - goarm: 6 - use: buildx - dockerfile: relay/Dockerfile - build_flag_templates: - - "--platform=linux/arm" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/signal:{{ .Version }}-amd64 - - ghcr.io/netbirdio/signal:{{ .Version }}-amd64 - ids: - - netbird-signal - goarch: amd64 - use: buildx - dockerfile: signal/Dockerfile - build_flag_templates: - - "--platform=linux/amd64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/signal:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/signal:{{ .Version }}-arm64v8 - ids: - - netbird-signal - goarch: arm64 - use: buildx - dockerfile: signal/Dockerfile - build_flag_templates: - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/signal:{{ .Version }}-arm - - ghcr.io/netbirdio/signal:{{ .Version }}-arm - ids: - - netbird-signal - goarch: arm - goarm: 6 - use: buildx - dockerfile: signal/Dockerfile - build_flag_templates: - - "--platform=linux/arm" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/management:{{ .Version }}-amd64 - - ghcr.io/netbirdio/management:{{ .Version }}-amd64 - ids: - - netbird-mgmt - goarch: amd64 - use: buildx - dockerfile: management/Dockerfile - build_flag_templates: - - "--platform=linux/amd64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/management:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/management:{{ .Version }}-arm64v8 - ids: - - netbird-mgmt - goarch: arm64 - use: buildx - dockerfile: management/Dockerfile - build_flag_templates: - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/management:{{ .Version }}-arm - - ghcr.io/netbirdio/management:{{ .Version }}-arm - ids: - - netbird-mgmt - goarch: arm - goarm: 6 - use: buildx - dockerfile: management/Dockerfile - build_flag_templates: - - "--platform=linux/arm" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/management:{{ .Version }}-debug-amd64 - - ghcr.io/netbirdio/management:{{ .Version }}-debug-amd64 - ids: - - netbird-mgmt - goarch: amd64 - use: buildx - dockerfile: management/Dockerfile.debug - build_flag_templates: - - "--platform=linux/amd64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/management:{{ .Version }}-debug-arm64v8 - - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm64v8 - ids: - - netbird-mgmt - goarch: arm64 - use: buildx - dockerfile: management/Dockerfile.debug - build_flag_templates: - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/relay:{{ .Version }}-amd64 +# - ghcr.io/netbirdio/relay:{{ .Version }}-amd64 +# ids: +# - netbird-relay +# goarch: amd64 +# use: buildx +# dockerfile: relay/Dockerfile +# build_flag_templates: +# - "--platform=linux/amd64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/relay:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/relay:{{ .Version }}-arm64v8 +# ids: +# - netbird-relay +# goarch: arm64 +# use: buildx +# dockerfile: relay/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/relay:{{ .Version }}-arm +# - ghcr.io/netbirdio/relay:{{ .Version }}-arm +# ids: +# - netbird-relay +# goarch: arm +# goarm: 6 +# use: buildx +# dockerfile: relay/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/signal:{{ .Version }}-amd64 +# - ghcr.io/netbirdio/signal:{{ .Version }}-amd64 +# ids: +# - netbird-signal +# goarch: amd64 +# use: buildx +# dockerfile: signal/Dockerfile +# build_flag_templates: +# - "--platform=linux/amd64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/signal:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/signal:{{ .Version }}-arm64v8 +# ids: +# - netbird-signal +# goarch: arm64 +# use: buildx +# dockerfile: signal/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/signal:{{ .Version }}-arm +# - ghcr.io/netbirdio/signal:{{ .Version }}-arm +# ids: +# - netbird-signal +# goarch: arm +# goarm: 6 +# use: buildx +# dockerfile: signal/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/management:{{ .Version }}-amd64 +# - ghcr.io/netbirdio/management:{{ .Version }}-amd64 +# ids: +# - netbird-mgmt +# goarch: amd64 +# use: buildx +# dockerfile: management/Dockerfile +# build_flag_templates: +# - "--platform=linux/amd64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/management:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/management:{{ .Version }}-arm64v8 +# ids: +# - netbird-mgmt +# goarch: arm64 +# use: buildx +# dockerfile: management/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/management:{{ .Version }}-arm +# - ghcr.io/netbirdio/management:{{ .Version }}-arm +# ids: +# - netbird-mgmt +# goarch: arm +# goarm: 6 +# use: buildx +# dockerfile: management/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/management:{{ .Version }}-debug-amd64 +# - ghcr.io/netbirdio/management:{{ .Version }}-debug-amd64 +# ids: +# - netbird-mgmt +# goarch: amd64 +# use: buildx +# dockerfile: management/Dockerfile.debug +# build_flag_templates: +# - "--platform=linux/amd64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/management:{{ .Version }}-debug-arm64v8 +# - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm64v8 +# ids: +# - netbird-mgmt +# goarch: arm64 +# use: buildx +# dockerfile: management/Dockerfile.debug +# build_flag_templates: +# - "--platform=linux/arm64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/management:{{ .Version }}-debug-arm - - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm - ids: - - netbird-mgmt - goarch: arm - goarm: 6 - use: buildx - dockerfile: management/Dockerfile.debug - build_flag_templates: - - "--platform=linux/arm" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/upload:{{ .Version }}-amd64 - - ghcr.io/netbirdio/upload:{{ .Version }}-amd64 - ids: - - netbird-upload - goarch: amd64 - use: buildx - dockerfile: upload-server/Dockerfile - build_flag_templates: - - "--platform=linux/amd64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/upload:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/upload:{{ .Version }}-arm64v8 - ids: - - netbird-upload - goarch: arm64 - use: buildx - dockerfile: upload-server/Dockerfile - build_flag_templates: - - "--platform=linux/arm64" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" - - image_templates: - - netbirdio/upload:{{ .Version }}-arm - - ghcr.io/netbirdio/upload:{{ .Version }}-arm - ids: - - netbird-upload - goarch: arm - goarm: 6 - use: buildx - dockerfile: upload-server/Dockerfile - build_flag_templates: - - "--platform=linux/arm" - - "--label=org.opencontainers.image.created={{.Date}}" - - "--label=org.opencontainers.image.title={{.ProjectName}}" - - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" - - "--label=maintainer=dev@netbird.io" -docker_manifests: - - name_template: netbirdio/netbird:{{ .Version }} - image_templates: - - netbirdio/netbird:{{ .Version }}-arm64v8 - - netbirdio/netbird:{{ .Version }}-arm - - netbirdio/netbird:{{ .Version }}-amd64 +# - image_templates: +# - netbirdio/management:{{ .Version }}-debug-arm +# - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm +# ids: +# - netbird-mgmt +# goarch: arm +# goarm: 6 +# use: buildx +# dockerfile: management/Dockerfile.debug +# build_flag_templates: +# - "--platform=linux/arm" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/upload:{{ .Version }}-amd64 +# - ghcr.io/netbirdio/upload:{{ .Version }}-amd64 +# ids: +# - netbird-upload +# goarch: amd64 +# use: buildx +# dockerfile: upload-server/Dockerfile +# build_flag_templates: +# - "--platform=linux/amd64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/upload:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/upload:{{ .Version }}-arm64v8 +# ids: +# - netbird-upload +# goarch: arm64 +# use: buildx +# dockerfile: upload-server/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm64" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# - image_templates: +# - netbirdio/upload:{{ .Version }}-arm +# - ghcr.io/netbirdio/upload:{{ .Version }}-arm +# ids: +# - netbird-upload +# goarch: arm +# goarm: 6 +# use: buildx +# dockerfile: upload-server/Dockerfile +# build_flag_templates: +# - "--platform=linux/arm" +# - "--label=org.opencontainers.image.created={{.Date}}" +# - "--label=org.opencontainers.image.title={{.ProjectName}}" +# - "--label=org.opencontainers.image.version={{.Version}}" +# - "--label=org.opencontainers.image.revision={{.FullCommit}}" +# - "--label=org.opencontainers.image.source=https://github.com/netbirdio/{{.ProjectName}}" +# - "--label=maintainer=dev@netbird.io" +# docker_manifests: +# - name_template: netbirdio/netbird:{{ .Version }} +# image_templates: +# - netbirdio/netbird:{{ .Version }}-arm64v8 +# - netbirdio/netbird:{{ .Version }}-arm +# - netbirdio/netbird:{{ .Version }}-amd64 +# +# - name_template: netbirdio/netbird:latest +# image_templates: +# - netbirdio/netbird:{{ .Version }}-arm64v8 +# - netbirdio/netbird:{{ .Version }}-arm +# - netbirdio/netbird:{{ .Version }}-amd64 +# +# - name_template: netbirdio/netbird:{{ .Version }}-rootless +# image_templates: +# - netbirdio/netbird:{{ .Version }}-rootless-arm64v8 +# - netbirdio/netbird:{{ .Version }}-rootless-arm +# - netbirdio/netbird:{{ .Version }}-rootless-amd64 +# +# - name_template: netbirdio/netbird:rootless-latest +# image_templates: +# - netbirdio/netbird:{{ .Version }}-rootless-arm64v8 +# - netbirdio/netbird:{{ .Version }}-rootless-arm +# - netbirdio/netbird:{{ .Version }}-rootless-amd64 +# +# - name_template: netbirdio/relay:{{ .Version }} +# image_templates: +# - netbirdio/relay:{{ .Version }}-arm64v8 +# - netbirdio/relay:{{ .Version }}-arm +# - netbirdio/relay:{{ .Version }}-amd64 +# +# - name_template: netbirdio/relay:latest +# image_templates: +# - netbirdio/relay:{{ .Version }}-arm64v8 +# - netbirdio/relay:{{ .Version }}-arm +# - netbirdio/relay:{{ .Version }}-amd64 +# +# - name_template: netbirdio/signal:{{ .Version }} +# image_templates: +# - netbirdio/signal:{{ .Version }}-arm64v8 +# - netbirdio/signal:{{ .Version }}-arm +# - netbirdio/signal:{{ .Version }}-amd64 +# +# - name_template: netbirdio/signal:latest +# image_templates: +# - netbirdio/signal:{{ .Version }}-arm64v8 +# - netbirdio/signal:{{ .Version }}-arm +# - netbirdio/signal:{{ .Version }}-amd64 +# +# - name_template: netbirdio/management:{{ .Version }} +# image_templates: +# - netbirdio/management:{{ .Version }}-arm64v8 +# - netbirdio/management:{{ .Version }}-arm +# - netbirdio/management:{{ .Version }}-amd64 +# +# - name_template: netbirdio/management:latest +# image_templates: +# - netbirdio/management:{{ .Version }}-arm64v8 +# - netbirdio/management:{{ .Version }}-arm +# - netbirdio/management:{{ .Version }}-amd64 +# +# - name_template: netbirdio/management:debug-latest +# image_templates: +# - netbirdio/management:{{ .Version }}-debug-arm64v8 +# - netbirdio/management:{{ .Version }}-debug-arm +# - netbirdio/management:{{ .Version }}-debug-amd64 +# - name_template: netbirdio/upload:{{ .Version }} +# image_templates: +# - netbirdio/upload:{{ .Version }}-arm64v8 +# - netbirdio/upload:{{ .Version }}-arm +# - netbirdio/upload:{{ .Version }}-amd64 +# +# - name_template: netbirdio/upload:latest +# image_templates: +# - netbirdio/upload:{{ .Version }}-arm64v8 +# - netbirdio/upload:{{ .Version }}-arm +# - netbirdio/upload:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/netbird:{{ .Version }} +# image_templates: +# - ghcr.io/netbirdio/netbird:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-arm +# - ghcr.io/netbirdio/netbird:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/netbird:latest +# image_templates: +# - ghcr.io/netbirdio/netbird:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-arm +# - ghcr.io/netbirdio/netbird:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/netbird:{{ .Version }}-rootless +# image_templates: +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm64v8 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-amd64 +# +# - name_template: ghcr.io/netbirdio/netbird:rootless-latest +# image_templates: +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm64v8 +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm +# - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-amd64 +# +# - name_template: ghcr.io/netbirdio/relay:{{ .Version }} +# image_templates: +# - ghcr.io/netbirdio/relay:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/relay:{{ .Version }}-arm +# - ghcr.io/netbirdio/relay:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/relay:latest +# image_templates: +# - ghcr.io/netbirdio/relay:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/relay:{{ .Version }}-arm +# - ghcr.io/netbirdio/relay:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/signal:{{ .Version }} +# image_templates: +# - ghcr.io/netbirdio/signal:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/signal:{{ .Version }}-arm +# - ghcr.io/netbirdio/signal:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/signal:latest +# image_templates: +# - ghcr.io/netbirdio/signal:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/signal:{{ .Version }}-arm +# - ghcr.io/netbirdio/signal:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/management:{{ .Version }} +# image_templates: +# - ghcr.io/netbirdio/management:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/management:{{ .Version }}-arm +# - ghcr.io/netbirdio/management:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/management:latest +# image_templates: +# - ghcr.io/netbirdio/management:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/management:{{ .Version }}-arm +# - ghcr.io/netbirdio/management:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/management:debug-latest +# image_templates: +# - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm64v8 +# - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm +# - ghcr.io/netbirdio/management:{{ .Version }}-debug-amd64 +# +# - name_template: ghcr.io/netbirdio/upload:{{ .Version }} +# image_templates: +# - ghcr.io/netbirdio/upload:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/upload:{{ .Version }}-arm +# - ghcr.io/netbirdio/upload:{{ .Version }}-amd64 +# +# - name_template: ghcr.io/netbirdio/upload:latest +# image_templates: +# - ghcr.io/netbirdio/upload:{{ .Version }}-arm64v8 +# - ghcr.io/netbirdio/upload:{{ .Version }}-arm +# - ghcr.io/netbirdio/upload:{{ .Version }}-amd64 +# brews: +# - ids: +# - default +# repository: +# owner: netbirdio +# name: homebrew-tap +# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" +# commit_author: +# name: Netbird +# email: dev@netbird.io +# description: Netbird project. +# download_strategy: CurlDownloadStrategy +# homepage: https://netbird.io/ +# license: "BSD3" +# test: | +# system "#{bin}/{{ .ProjectName }} version" - - name_template: netbirdio/netbird:latest - image_templates: - - netbirdio/netbird:{{ .Version }}-arm64v8 - - netbirdio/netbird:{{ .Version }}-arm - - netbirdio/netbird:{{ .Version }}-amd64 +# uploads: +# - name: debian +# ids: +# - netbird-deb +# mode: archive +# target: https://pkgs.wiretrustee.com/debian/pool/{{ .ArtifactName }};deb.distribution=stable;deb.component=main;deb.architecture={{ if .Arm }}armhf{{ else }}{{ .Arch }}{{ end }};deb.package= +# username: dev@wiretrustee.com +# method: PUT - - name_template: netbirdio/netbird:{{ .Version }}-rootless - image_templates: - - netbirdio/netbird:{{ .Version }}-rootless-arm64v8 - - netbirdio/netbird:{{ .Version }}-rootless-arm - - netbirdio/netbird:{{ .Version }}-rootless-amd64 - - - name_template: netbirdio/netbird:rootless-latest - image_templates: - - netbirdio/netbird:{{ .Version }}-rootless-arm64v8 - - netbirdio/netbird:{{ .Version }}-rootless-arm - - netbirdio/netbird:{{ .Version }}-rootless-amd64 - - - name_template: netbirdio/relay:{{ .Version }} - image_templates: - - netbirdio/relay:{{ .Version }}-arm64v8 - - netbirdio/relay:{{ .Version }}-arm - - netbirdio/relay:{{ .Version }}-amd64 - - - name_template: netbirdio/relay:latest - image_templates: - - netbirdio/relay:{{ .Version }}-arm64v8 - - netbirdio/relay:{{ .Version }}-arm - - netbirdio/relay:{{ .Version }}-amd64 - - - name_template: netbirdio/signal:{{ .Version }} - image_templates: - - netbirdio/signal:{{ .Version }}-arm64v8 - - netbirdio/signal:{{ .Version }}-arm - - netbirdio/signal:{{ .Version }}-amd64 - - - name_template: netbirdio/signal:latest - image_templates: - - netbirdio/signal:{{ .Version }}-arm64v8 - - netbirdio/signal:{{ .Version }}-arm - - netbirdio/signal:{{ .Version }}-amd64 - - - name_template: netbirdio/management:{{ .Version }} - image_templates: - - netbirdio/management:{{ .Version }}-arm64v8 - - netbirdio/management:{{ .Version }}-arm - - netbirdio/management:{{ .Version }}-amd64 - - - name_template: netbirdio/management:latest - image_templates: - - netbirdio/management:{{ .Version }}-arm64v8 - - netbirdio/management:{{ .Version }}-arm - - netbirdio/management:{{ .Version }}-amd64 - - - name_template: netbirdio/management:debug-latest - image_templates: - - netbirdio/management:{{ .Version }}-debug-arm64v8 - - netbirdio/management:{{ .Version }}-debug-arm - - netbirdio/management:{{ .Version }}-debug-amd64 - - name_template: netbirdio/upload:{{ .Version }} - image_templates: - - netbirdio/upload:{{ .Version }}-arm64v8 - - netbirdio/upload:{{ .Version }}-arm - - netbirdio/upload:{{ .Version }}-amd64 - - - name_template: netbirdio/upload:latest - image_templates: - - netbirdio/upload:{{ .Version }}-arm64v8 - - netbirdio/upload:{{ .Version }}-arm - - netbirdio/upload:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/netbird:{{ .Version }} - image_templates: - - ghcr.io/netbirdio/netbird:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/netbird:{{ .Version }}-arm - - ghcr.io/netbirdio/netbird:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/netbird:latest - image_templates: - - ghcr.io/netbirdio/netbird:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/netbird:{{ .Version }}-arm - - ghcr.io/netbirdio/netbird:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/netbird:{{ .Version }}-rootless - image_templates: - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm64v8 - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-amd64 - - - name_template: ghcr.io/netbirdio/netbird:rootless-latest - image_templates: - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm64v8 - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-arm - - ghcr.io/netbirdio/netbird:{{ .Version }}-rootless-amd64 - - - name_template: ghcr.io/netbirdio/relay:{{ .Version }} - image_templates: - - ghcr.io/netbirdio/relay:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/relay:{{ .Version }}-arm - - ghcr.io/netbirdio/relay:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/relay:latest - image_templates: - - ghcr.io/netbirdio/relay:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/relay:{{ .Version }}-arm - - ghcr.io/netbirdio/relay:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/signal:{{ .Version }} - image_templates: - - ghcr.io/netbirdio/signal:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/signal:{{ .Version }}-arm - - ghcr.io/netbirdio/signal:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/signal:latest - image_templates: - - ghcr.io/netbirdio/signal:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/signal:{{ .Version }}-arm - - ghcr.io/netbirdio/signal:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/management:{{ .Version }} - image_templates: - - ghcr.io/netbirdio/management:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/management:{{ .Version }}-arm - - ghcr.io/netbirdio/management:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/management:latest - image_templates: - - ghcr.io/netbirdio/management:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/management:{{ .Version }}-arm - - ghcr.io/netbirdio/management:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/management:debug-latest - image_templates: - - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm64v8 - - ghcr.io/netbirdio/management:{{ .Version }}-debug-arm - - ghcr.io/netbirdio/management:{{ .Version }}-debug-amd64 - - - name_template: ghcr.io/netbirdio/upload:{{ .Version }} - image_templates: - - ghcr.io/netbirdio/upload:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/upload:{{ .Version }}-arm - - ghcr.io/netbirdio/upload:{{ .Version }}-amd64 - - - name_template: ghcr.io/netbirdio/upload:latest - image_templates: - - ghcr.io/netbirdio/upload:{{ .Version }}-arm64v8 - - ghcr.io/netbirdio/upload:{{ .Version }}-arm - - ghcr.io/netbirdio/upload:{{ .Version }}-amd64 -brews: - - ids: - - default - repository: - owner: netbirdio - name: homebrew-tap - token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" - commit_author: - name: Netbird - email: dev@netbird.io - description: Netbird project. - download_strategy: CurlDownloadStrategy - homepage: https://netbird.io/ - license: "BSD3" - test: | - system "#{bin}/{{ .ProjectName }} version" - -uploads: - - name: debian - ids: - - netbird-deb - mode: archive - target: https://pkgs.wiretrustee.com/debian/pool/{{ .ArtifactName }};deb.distribution=stable;deb.component=main;deb.architecture={{ if .Arm }}armhf{{ else }}{{ .Arch }}{{ end }};deb.package= - username: dev@wiretrustee.com - method: PUT - - - name: yum - ids: - - netbird-rpm - mode: archive - target: https://pkgs.wiretrustee.com/yum/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }} - username: dev@wiretrustee.com - method: PUT +# - name: yum +# ids: +# - netbird-rpm +# mode: archive +# target: https://pkgs.wiretrustee.com/yum/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }} +# username: dev@wiretrustee.com +# method: PUT checksum: extra_files: diff --git a/.goreleaser_ui.yaml b/.goreleaser_ui.yaml index 459f204d3..86c1d059f 100644 --- a/.goreleaser_ui.yaml +++ b/.goreleaser_ui.yaml @@ -79,19 +79,19 @@ nfpms: dependencies: - netbird -uploads: - - name: debian - ids: - - netbird-ui-deb - mode: archive - target: https://pkgs.wiretrustee.com/debian/pool/{{ .ArtifactName }};deb.distribution=stable;deb.component=main;deb.architecture={{ if .Arm }}armhf{{ else }}{{ .Arch }}{{ end }};deb.package= - username: dev@wiretrustee.com - method: PUT +# uploads: +# - name: debian +# ids: +# - netbird-ui-deb +# mode: archive +# target: https://pkgs.wiretrustee.com/debian/pool/{{ .ArtifactName }};deb.distribution=stable;deb.component=main;deb.architecture={{ if .Arm }}armhf{{ else }}{{ .Arch }}{{ end }};deb.package= +# username: dev@wiretrustee.com +# method: PUT - - name: yum - ids: - - netbird-ui-rpm - mode: archive - target: https://pkgs.wiretrustee.com/yum/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }} - username: dev@wiretrustee.com - method: PUT +# - name: yum +# ids: +# - netbird-ui-rpm +# mode: archive +# target: https://pkgs.wiretrustee.com/yum/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }} +# username: dev@wiretrustee.com +# method: PUT