Skip to content

Commit

Permalink
chore: update GitHub Actions workflow for release build
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
tphakala committed Jan 15, 2025
1 parent 073bcb7 commit cf54985
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: BirdNET-Go Release Build
on:
release:
types: [created, edited]
workflow_dispatch:

permissions:
contents: write
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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: |
Expand Down

0 comments on commit cf54985

Please sign in to comment.