Compare commits
6 Commits
next-major
..
v2.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e262afdb1f | ||
|
|
a5268ae1f6 | ||
|
|
16ad16d873 | ||
|
|
200cfd1a2d | ||
|
|
afacf40ec8 | ||
|
|
0a7aab7030 |
@@ -3,19 +3,17 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- master
|
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
@@ -28,7 +26,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
@@ -46,7 +44,7 @@ jobs:
|
|||||||
needs: test
|
needs: test
|
||||||
if: "${{ github.event_name != 'pull_request' }}"
|
if: "${{ github.event_name != 'pull_request' }}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
@@ -55,17 +53,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Build binaries
|
- name: Build binaries
|
||||||
env:
|
env:
|
||||||
VERSION: "${{ vars.REF_NAME }}"
|
VERSION: "${{ github.REF_NAME }}"
|
||||||
run: make all
|
run: make all
|
||||||
|
|
||||||
# Package binaries and create release if this is a tagged build
|
# Package binaries and create release if this is a tagged build
|
||||||
- name: Compress binaries
|
- name: Compress binaries
|
||||||
if: "${{ github.event_name == 'tag' }}"
|
if: "${{ github.ref_type == 'tag' }}"
|
||||||
run: find ./dist -type f -executable -execdir tar -czvf {}.tar.gz {} \;
|
run: find ./dist -type f -executable -execdir tar -czvf {}.tar.gz {} \;
|
||||||
|
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
if: "${{ github.event_name == 'tag' }}"
|
if: "${{ github.ref_type == 'tag' }}"
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
dist/*.tar.gz
|
dist/*.tar.gz
|
||||||
@@ -89,6 +87,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
if: "${{ github.event_name != 'pull_request' }}"
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
@@ -108,6 +107,5 @@ jobs:
|
|||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm64
|
linux/arm64
|
||||||
linux/arm
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user