Update workflows (#998)
* Add IPC_LOCK capability to vault containers Signed-off-by: Dmytro Bondar <git@bonddim.com> * Add github-actions to dependabot config Signed-off-by: Dmytro Bondar <git@bonddim.com> * Use one goreleaser workflow Signed-off-by: Dmytro Bondar <git@bonddim.com> * Update actions Signed-off-by: Dmytro Bondar <git@bonddim.com> * Update and move lint job to ci workflow Signed-off-by: Dmytro Bondar <git@bonddim.com> * Remove cache task, get go version from go.mod Signed-off-by: Dmytro Bondar <git@bonddim.com> * Reformat ci.yaml Signed-off-by: Dmytro Bondar <git@bonddim.com> * Update goreleaser changelog config Signed-off-by: Dmytro Bondar <git@bonddim.com> * Add workflow to cleanup PR caches Signed-off-by: Dmytro Bondar <git@bonddim.com> --------- Signed-off-by: Dmytro Bondar <git@bonddim.com>
This commit is contained in:
parent
8aa4389fe9
commit
d72fdcaa7b
|
|
@ -9,3 +9,7 @@ updates:
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@ minikube:
|
||||||
vault:
|
vault:
|
||||||
docker kill $$(docker ps -a --filter "name=vault" -q) || true
|
docker kill $$(docker ps -a --filter "name=vault" -q) || true
|
||||||
docker run -d -p8200:8200 --rm --name vault vault:1.2.0 server -dev -dev-root-token-id=toor
|
docker run -d -p8200:8200 --rm --name vault vault:1.2.0 server -dev -dev-root-token-id=toor
|
||||||
docker run --rm --network="host" -e VAULT_ADDR=$$VAULT_ADDR -e VAULT_TOKEN=$$VAULT_TOKEN vault:1.2.0 secrets enable -path=sops transit
|
docker run --rm --network="host" --cap-add IPC_LOCK -e VAULT_ADDR=$$VAULT_ADDR -e VAULT_TOKEN=$$VAULT_TOKEN vault:1.2.0 secrets enable -path=sops transit
|
||||||
docker run --rm --network="host" -e VAULT_ADDR=$$VAULT_ADDR -e VAULT_TOKEN=$$VAULT_TOKEN vault:1.2.0 write sops/keys/key type=rsa-4096
|
docker run --rm --network="host" --cap-add IPC_LOCK -e VAULT_ADDR=$$VAULT_ADDR -e VAULT_TOKEN=$$VAULT_TOKEN vault:1.2.0 write sops/keys/key type=rsa-4096
|
||||||
.PHONY: vault
|
.PHONY: vault
|
||||||
|
|
||||||
sops:
|
sops:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Cleanup cache
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cleanup-cache:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
gh extension install actions/gh-actions-cache
|
||||||
|
|
||||||
|
echo "Fetching list of cache keys"
|
||||||
|
cacheKeys=$(gh actions-cache list -R $GITHUB_REPOSITORY -B $BRANCH | cut -f 1 )
|
||||||
|
|
||||||
|
echo "Deleting caches..."
|
||||||
|
for cacheKey in $cacheKeys; do
|
||||||
|
gh actions-cache delete $cacheKey -R $GITHUB_REPOSITORY -B $BRANCH --confirm
|
||||||
|
done
|
||||||
|
shell: bash
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
|
@ -9,144 +9,125 @@ on:
|
||||||
paths-ignore: [ '**.md', '**/docs/**' ]
|
paths-ignore: [ '**.md', '**/docs/**' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
- uses: golangci/golangci-lint-action@v3
|
||||||
|
with:
|
||||||
|
version: v1.54.2
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Cache libraries
|
- uses: actions/setup-go@v4
|
||||||
uses: actions/cache@v2
|
with:
|
||||||
env:
|
go-version-file: go.mod
|
||||||
cache-name: cache-go
|
- name: Build
|
||||||
with:
|
run: make build build-test-tools
|
||||||
path: ~/go/pkg/mod
|
- name: Test
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
|
run: make check test
|
||||||
restore-keys: |
|
- name: Archive built binaries
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
run: tar -cvf built-binaries.tar helmfile diff-yamls dyff
|
||||||
${{ runner.os }}-build-
|
- uses: actions/upload-artifact@v3
|
||||||
${{ runner.os }}-
|
with:
|
||||||
- name: Set up Go
|
name: built-binaries-${{ github.run_id }}
|
||||||
uses: actions/setup-go@v3
|
path: built-binaries.tar
|
||||||
with:
|
retention-days: 1
|
||||||
go-version: '1.21'
|
- name: Display built binaries
|
||||||
- name: Env
|
run: ls -l helmfile diff-yamls dyff
|
||||||
run: go env
|
|
||||||
- name: Build
|
|
||||||
run: make build build-test-tools
|
|
||||||
- name: Test
|
|
||||||
run: make check test
|
|
||||||
|
|
||||||
- name: Prepare tar to upload built binaries
|
|
||||||
run: tar -cvf built-binaries.tar helmfile diff-yamls dyff
|
|
||||||
- name: Upload built binaries
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: built-binaries-${{ github.run_id }}
|
|
||||||
path: built-binaries.tar
|
|
||||||
retention-days: 1
|
|
||||||
- name: Display built binaries
|
|
||||||
run: ls -l helmfile diff-yamls dyff
|
|
||||||
|
|
||||||
integration_tests:
|
integration_tests:
|
||||||
needs: tests
|
needs: tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Helm maintains the latest minor version only and therefore each Helmfile version supports 2 Helm minor versions.
|
# Helm maintains the latest minor version only and therefore each Helmfile version supports 2 Helm minor versions.
|
||||||
# That's why we cover only 2 Helm minor versions in this matrix.
|
# That's why we cover only 2 Helm minor versions in this matrix.
|
||||||
# See https://github.com/helmfile/helmfile/pull/286#issuecomment-1250161182 for more context.
|
# See https://github.com/helmfile/helmfile/pull/286#issuecomment-1250161182 for more context.
|
||||||
- helm-version: v3.11.3
|
- helm-version: v3.11.3
|
||||||
kustomize-version: v4.4.1
|
kustomize-version: v4.4.1
|
||||||
plugin-secrets-version: 3.15.0
|
plugin-secrets-version: 3.15.0
|
||||||
plugin-diff-version: 3.7.0
|
plugin-diff-version: 3.7.0
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags: ''
|
||||||
v1mode:
|
v1mode: ''
|
||||||
- helm-version: v3.11.3
|
- helm-version: v3.11.3
|
||||||
kustomize-version: v4.5.7
|
kustomize-version: v4.5.7
|
||||||
# We assume that the helm-secrets plugin is supposed to
|
# We assume that the helm-secrets plugin is supposed to
|
||||||
# work with the two most recent helm minor versions.
|
# work with the two most recent helm minor versions.
|
||||||
# Once it turned out to be not practically true,
|
# Once it turned out to be not practically true,
|
||||||
# we will mark this combination as failable,
|
# we will mark this combination as failable,
|
||||||
# and instruct users to upgrade helm and helm-secrets at once.
|
# and instruct users to upgrade helm and helm-secrets at once.
|
||||||
plugin-secrets-version: 4.0.0
|
plugin-secrets-version: 4.0.0
|
||||||
plugin-diff-version: 3.8.1
|
plugin-diff-version: 3.8.1
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags: ''
|
||||||
v1mode:
|
v1mode: ''
|
||||||
- helm-version: v3.12.3
|
- helm-version: v3.12.3
|
||||||
kustomize-version: v4.4.1
|
kustomize-version: v4.4.1
|
||||||
plugin-secrets-version: 3.15.0
|
plugin-secrets-version: 3.15.0
|
||||||
plugin-diff-version: 3.7.0
|
plugin-diff-version: 3.7.0
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags: ''
|
||||||
v1mode:
|
v1mode: ''
|
||||||
- helm-version: v3.12.3
|
- helm-version: v3.12.3
|
||||||
kustomize-version: v4.5.7
|
kustomize-version: v4.5.7
|
||||||
plugin-secrets-version: 4.0.0
|
plugin-secrets-version: 4.0.0
|
||||||
plugin-diff-version: 3.8.1
|
plugin-diff-version: 3.8.1
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags: ''
|
||||||
v1mode:
|
v1mode: ''
|
||||||
# Helmfile v1
|
# Helmfile v1
|
||||||
- helm-version: v3.12.3
|
- helm-version: v3.12.3
|
||||||
kustomize-version: v4.5.7
|
kustomize-version: v4.5.7
|
||||||
plugin-secrets-version: 4.0.0
|
plugin-secrets-version: 4.0.0
|
||||||
plugin-diff-version: 3.8.1
|
plugin-diff-version: 3.8.1
|
||||||
extra-helmfile-flags:
|
extra-helmfile-flags: ''
|
||||||
v1mode: "true"
|
v1mode: 'true'
|
||||||
# In case you need to test some optional helmfile features,
|
# In case you need to test some optional helmfile features,
|
||||||
# enable it via extra-helmfile-flags below.
|
# enable it via extra-helmfile-flags below.
|
||||||
- helm-version: v3.12.3
|
- helm-version: v3.12.3
|
||||||
kustomize-version: v4.5.7
|
kustomize-version: v4.5.7
|
||||||
plugin-secrets-version: 4.0.0
|
plugin-secrets-version: 4.0.0
|
||||||
plugin-diff-version: 3.8.1
|
plugin-diff-version: 3.8.1
|
||||||
extra-helmfile-flags: "--enable-live-output"
|
extra-helmfile-flags: '--enable-live-output'
|
||||||
v1mode:
|
v1mode: ''
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Cache libraries
|
- uses: actions/setup-go@v4
|
||||||
uses: actions/cache@v2
|
with:
|
||||||
env:
|
go-version-file: go.mod
|
||||||
cache-name: cache-go
|
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
${{ runner.os }}-
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: '1.21'
|
|
||||||
- name: Env
|
|
||||||
run: go env
|
|
||||||
|
|
||||||
- name: Download built binaries
|
- uses: actions/download-artifact@v3
|
||||||
uses: actions/download-artifact@v2
|
with:
|
||||||
with:
|
name: built-binaries-${{ github.run_id }}
|
||||||
name: built-binaries-${{ github.run_id }}
|
- name: Extract tar to get built binaries
|
||||||
- name: Extract tar to get built binaries
|
run: tar -xvf built-binaries.tar
|
||||||
run: tar -xvf built-binaries.tar
|
- name: Display built binaries
|
||||||
- name: Display built binaries
|
run: ls -l helmfile diff-yamls dyff
|
||||||
run: ls -l helmfile diff-yamls dyff
|
|
||||||
|
- name: Install test dependencies
|
||||||
|
env:
|
||||||
|
HELM_VERSION: ${{ matrix.helm-version }}
|
||||||
|
KUSTOMIZE_VERSION: ${{ matrix.kustomize-version }}
|
||||||
|
run: make -C .github/workflows helm vault sops kustomize
|
||||||
|
- name: Start minikube
|
||||||
|
uses: medyagh/setup-minikube@latest
|
||||||
|
- name: Execute integration tests
|
||||||
|
run: make integration
|
||||||
|
env:
|
||||||
|
HELM_SECRETS_VERSION: ${{ matrix.plugin-secrets-version }}
|
||||||
|
HELM_DIFF_VERSION: ${{ matrix.plugin-diff-version }}
|
||||||
|
HELMFILE_HELM3: 1
|
||||||
|
TERM: xterm
|
||||||
|
EXTRA_HELMFILE_FLAGS: ${{ matrix.extra-helmfile-flags }}
|
||||||
|
HELMFILE_V1MODE: ${{ matrix.v1mode }}
|
||||||
|
|
||||||
- name: Install test dependencies
|
|
||||||
env:
|
|
||||||
HELM_VERSION: ${{ matrix.helm-version }}
|
|
||||||
KUSTOMIZE_VERSION: ${{ matrix.kustomize-version }}
|
|
||||||
run: make -C .github/workflows helm vault sops kustomize
|
|
||||||
- name: Start minikube
|
|
||||||
uses: medyagh/setup-minikube@latest
|
|
||||||
- name: Execute integration tests
|
|
||||||
env:
|
|
||||||
HELM_SECRETS_VERSION: ${{ matrix.plugin-secrets-version }}
|
|
||||||
HELM_DIFF_VERSION: ${{ matrix.plugin-diff-version }}
|
|
||||||
HELMFILE_HELM3: 1
|
|
||||||
TERM: xterm
|
|
||||||
EXTRA_HELMFILE_FLAGS: ${{ matrix.extra-helmfile-flags }}
|
|
||||||
HELMFILE_V1MODE: ${{ matrix.v1mode }}
|
|
||||||
run: make integration
|
|
||||||
e2e_tests:
|
e2e_tests:
|
||||||
needs: tests
|
needs: tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -154,18 +135,16 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install package
|
- uses: actions/download-artifact@v3
|
||||||
run: |
|
|
||||||
sudo apt-get -y install expect
|
|
||||||
- name: Download built binaries
|
|
||||||
uses: actions/download-artifact@v2
|
|
||||||
with:
|
with:
|
||||||
name: built-binaries-${{ github.run_id }}
|
name: built-binaries-${{ github.run_id }}
|
||||||
- name: Extract tar to get built binaries
|
- name: Extract tar to get built binaries
|
||||||
run: tar -xvf built-binaries.tar
|
run: tar -xvf built-binaries.tar
|
||||||
- name: Display built binaries
|
- name: Display built binaries
|
||||||
run: ls -l helmfile diff-yamls dyff
|
run: ls -l helmfile diff-yamls dyff
|
||||||
|
- name: Install package
|
||||||
|
run: sudo apt-get -y install expect
|
||||||
- name: Run helmfile init
|
- name: Run helmfile init
|
||||||
|
run: bash test/e2e/helmfile-init/init_linux.sh
|
||||||
env:
|
env:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
run: bash test/e2e/helmfile-init/init_linux.sh
|
|
||||||
|
|
|
||||||
|
|
@ -64,14 +64,14 @@ jobs:
|
||||||
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build / Push
|
- name: Build / Push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ${{ matrix.image.dockerfile }}
|
file: ${{ matrix.image.dockerfile }}
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
name: Lint
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
paths-ignore: [ '**.md', '**/docs/**' ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
paths-ignore: [ '**.md', '**/docs/**' ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
GO_VERSION: 1.21
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
name: Lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: '1.21'
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Golangci lint
|
|
||||||
uses: golangci/golangci-lint-action@v3
|
|
||||||
with:
|
|
||||||
version: v1.54.1
|
|
||||||
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
lock:
|
lock:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: 'dessant/lock-threads@v2'
|
- uses: 'dessant/lock-threads@v4'
|
||||||
with:
|
with:
|
||||||
github-token: '${{ github.token }}'
|
github-token: '${{ github.token }}'
|
||||||
issue-lock-inactive-days: 1
|
issue-lock-inactive-days: 1
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
name: Publish v0.x Binaries
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "!*"
|
|
||||||
tags:
|
|
||||||
- "v0*"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
goreleaser:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
-
|
|
||||||
name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: '1.21'
|
|
||||||
-
|
|
||||||
name: Run GoReleaser
|
|
||||||
uses: goreleaser/goreleaser-action@v1
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
args: release --rm-dist
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
name: Publish v1.x Binaries
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "!*"
|
|
||||||
tags:
|
|
||||||
- "v1*"
|
|
||||||
|
|
||||||
env:
|
|
||||||
# This is referenced from .goreleaser.yml
|
|
||||||
HELMFILE_V1MODE: "true"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
goreleaser:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
-
|
|
||||||
name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: '1.21'
|
|
||||||
-
|
|
||||||
name: Run GoReleaser
|
|
||||||
uses: goreleaser/goreleaser-action@v1
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
args: release --rm-dist
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
name: GoReleaser
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v0*'
|
||||||
|
- 'v1*'
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
HELMFILE_V1MODE: ${{ startsWith(github.ref, 'refs/tags/v1') }}
|
||||||
|
SNAPSHOT: ${{ !startsWith(github.ref, 'refs/tags/v') && '--snapshot' || '' }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
goreleaser:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
- uses: goreleaser/goreleaser-action@v4
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
args: release --clean ${{ env.SNAPSHOT }}
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
name: Test Binary Builds
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
goreleaser:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
-
|
|
||||||
name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: '1.21'
|
|
||||||
-
|
|
||||||
name: Run GoReleaser
|
|
||||||
uses: goreleaser/goreleaser-action@v1
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
args: release --rm-dist --snapshot
|
|
||||||
|
|
@ -23,5 +23,19 @@ builds:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
- "386"
|
- "386"
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
use: github-native
|
use: github
|
||||||
|
sort: asc
|
||||||
|
groups:
|
||||||
|
- title: Features
|
||||||
|
regexp: '^.*[Ff]eat[(\\w)]*:+.*$'
|
||||||
|
order: 0
|
||||||
|
- title: "Fixes"
|
||||||
|
regexp: '^.*fix[(\\w)]*.*$'
|
||||||
|
order: 1
|
||||||
|
- title: "Dependencies"
|
||||||
|
regexp: '^.*(deps|bump)[(\\w)]*.*$'
|
||||||
|
order: 2
|
||||||
|
- title: Others
|
||||||
|
order: 999
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue