From cf54985afcac80bbb1f5458d95daf9bdbb32c978 Mon Sep 17 00:00:00 2001 From: "Tomi P. Hakala" Date: Wed, 15 Jan 2025 22:05:13 +0200 Subject: [PATCH] chore: update GitHub Actions workflow for release build - Added support for manual triggering of the release build workflow with `workflow_dispatch`. - Upgraded the build environment from Ubuntu 20.04 to Ubuntu 22.04 for improved compatibility and performance. - Updated Go version from 1.22.1 to 1.23.4 to leverage new features and optimizations. - Changed Docker actions to use the latest stable versions for better reliability and security. These changes enhance the build process and ensure the workflow is up-to-date with the latest dependencies. --- .github/workflows/release-build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index f2099fd..950cc2d 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -3,6 +3,7 @@ name: BirdNET-Go Release Build on: release: types: [created, edited] + workflow_dispatch: permissions: contents: write @@ -11,7 +12,7 @@ permissions: jobs: build: if: ${{ !contains(github.ref, 'nightly') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -31,7 +32,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} - goversion: "https://dl.google.com/go/go1.22.1.linux-amd64.tar.gz" + goversion: "https://dl.google.com/go/go1.23.4.linux-amd64.tar.gz" md5sum: false sha256sum: false compress_assets: auto @@ -42,7 +43,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Login to GitHub Container Registry - uses: docker/login-action@v3.0.0 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -54,7 +55,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v5.5.1 + uses: docker/metadata-action@v5 with: images: ghcr.io/${{ env.REPO }} tags: |