mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
chore: update workflows and goreleaser
This commit is contained in:
@@ -27,9 +27,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version-file: 'go.mod'
|
||||||
|
cache: true
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
go test -v -short ./...
|
go test -v -short ./...
|
||||||
|
|||||||
@@ -24,9 +24,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version-file: 'go.mod'
|
||||||
|
cache: true
|
||||||
- name: Run Integration Tests
|
- name: Run Integration Tests
|
||||||
run: |
|
run: |
|
||||||
go test -v ./tests
|
go test -v ./tests
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
name: nightly
|
|
||||||
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
- name: Docker Login
|
|
||||||
uses: docker/login-action@v1
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.repository_owner }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: "1.20"
|
|
||||||
- name: Install cosign
|
|
||||||
uses: sigstore/cosign-installer@v2.8.1
|
|
||||||
- name: Run GoReleaser
|
|
||||||
uses: goreleaser/goreleaser-action@v2
|
|
||||||
with:
|
|
||||||
distribution: goreleaser-pro
|
|
||||||
version: latest
|
|
||||||
args: release --nightly --rm-dist
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
|
||||||
@@ -3,7 +3,7 @@ name: release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- 'v*'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -29,17 +29,17 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version-file: 'go.mod'
|
||||||
|
cache: true
|
||||||
- name: Install cosign
|
- name: Install cosign
|
||||||
uses: sigstore/cosign-installer@v2.8.1
|
uses: sigstore/cosign-installer@v3.1.1
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v5
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser-pro
|
distribution: goreleaser
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --rm-dist
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
|
||||||
+3
-4
@@ -1,8 +1,5 @@
|
|||||||
project_name: ionscale
|
project_name: ionscale
|
||||||
|
|
||||||
nightly:
|
|
||||||
name_template: '{{ incminor .Version }}-dev'
|
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
@@ -44,7 +41,7 @@ docker_manifests:
|
|||||||
image_templates:
|
image_templates:
|
||||||
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-amd64
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-amd64
|
||||||
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-arm64
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-arm64
|
||||||
- name_template: ghcr.io/jsiebens/{{ .ProjectName }}:{{ if .IsNightly }}dev{{ else }}latest{{ end }}
|
- name_template: ghcr.io/jsiebens/{{ .ProjectName }}:latest
|
||||||
image_templates:
|
image_templates:
|
||||||
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-amd64
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-amd64
|
||||||
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-arm64
|
- ghcr.io/jsiebens/{{ .ProjectName }}:{{ .Version }}-arm64
|
||||||
@@ -59,6 +56,7 @@ signs:
|
|||||||
- '--output-certificate=${certificate}'
|
- '--output-certificate=${certificate}'
|
||||||
- '--output-signature=${signature}'
|
- '--output-signature=${signature}'
|
||||||
- '${artifact}'
|
- '${artifact}'
|
||||||
|
- '--yes'
|
||||||
artifacts: checksum
|
artifacts: checksum
|
||||||
|
|
||||||
docker_signs:
|
docker_signs:
|
||||||
@@ -70,6 +68,7 @@ docker_signs:
|
|||||||
args:
|
args:
|
||||||
- sign
|
- sign
|
||||||
- '${artifact}'
|
- '${artifact}'
|
||||||
|
- '--yes'
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: binary
|
- format: binary
|
||||||
|
|||||||
Reference in New Issue
Block a user