Skip to content

Commit 466bcb7

Browse files
committed
Update workflows
1 parent 26cd9b7 commit 466bcb7

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,27 @@ jobs:
1414
steps:
1515
# Setup the workflow to use the specific version of Go
1616
- name: Set up Go 1.x
17-
uses: actions/setup-go@v5
17+
uses: actions/setup-go@v6
1818
with:
1919
go-version: ${{ matrix.go }}
2020
id: go
2121
# Checkout the repository
2222
- name: Checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v6
2424
# Verify downloaded dependencies
2525
- name: Verify dependencies
2626
run: go mod verify
2727
- name: "Create k3d Cluster for E2E testing"
2828
uses: AbsaOSS/k3d-action@v2.4.0
2929
with:
3030
cluster-name: "testcluster"
31-
with:
32-
k3d-version: v5.8.3
31+
k3d-version: v5.8.3
3332
args: >-
3433
-p "8443:443@loadbalancer"
3534
- name: "Deploy keycloak"
3635
run: |
37-
k3d kubeconfig merge testcluster --kubeconfig-switch-context
38-
export KUBECONFIG=~/.k3d/kubeconfig-testcluster.yaml
36+
k3d kubeconfig get testcluster > kubeconfig-testcluster.yaml
37+
export KUBECONFIG=kubeconfig-testcluster.yaml
3938
kubectl apply -f ./e2e/k8s/manifest.yml
4039
- name: "Deploy Redis"
4140
run: |
@@ -134,11 +133,11 @@ jobs:
134133
matrix:
135134
go: ["1.25"]
136135
steps:
137-
- uses: actions/setup-go@v5
136+
- uses: actions/setup-go@v6
138137
with:
139138
go-version: ${{ matrix.go }}
140139
- name: Checkout
141-
uses: actions/checkout@v4
140+
uses: actions/checkout@v6
142141
- name: golangci-lint
143142
uses: golangci/golangci-lint-action@v7
144143
with:

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id-token: write
1818
contents: write
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v6
2121
- name: Generate SBOM
2222
# generation command documentation: https://github.com/microsoft/sbom-tool#sbom-generation
2323
run: |
@@ -42,7 +42,7 @@ jobs:
4242
go-version: "1.25.3"
4343
# Checkout the repository
4444
- name: Checkout
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4646
# Cleans up unreachable Git objects and convert a shallow clone to a regular one if needed
4747
- name: Unshallow
4848
run: git fetch --prune --unshallow
@@ -57,12 +57,13 @@ jobs:
5757
uses: AbsaOSS/k3d-action@v2.4.0
5858
with:
5959
cluster-name: "testcluster"
60+
k3d-version: v5.8.3
6061
args: >-
6162
-p "8443:443@loadbalancer"
6263
- name: "Deploy keycloak"
6364
run: |
64-
k3d kubeconfig merge testcluster --kubeconfig-switch-context
65-
export KUBECONFIG=~/.k3d/kubeconfig-testcluster.yaml
65+
k3d kubeconfig get testcluster > kubeconfig-testcluster.yaml
66+
export KUBECONFIG=kubeconfig-testcluster.yaml
6667
kubectl apply -f ./e2e/k8s/manifest.yml
6768
- name: "Deploy Redis"
6869
run: |
@@ -148,8 +149,9 @@ jobs:
148149
pkill redis-server
149150
sleep 3
150151
rm -rf /tmp/redis-*
152+
rm kubeconfig-testcluster.yaml
151153
- name: Run GoReleaser
152-
uses: goreleaser/goreleaser-action@v3
154+
uses: goreleaser/goreleaser-action@v6
153155
with:
154156
version: latest
155157
args: release --clean
@@ -164,7 +166,7 @@ jobs:
164166
packages: write
165167
steps:
166168
- name: Checkout repository
167-
uses: actions/checkout@v4
169+
uses: actions/checkout@v6
168170

169171
- name: Set up Docker Buildx
170172
uses: docker/setup-buildx-action@v3

.goreleaser.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Mark the release as not ready for production in case there is an
22
# indicator for this in the tag e.g. v1.0.0-rc1
33
# See: https://goreleaser.com/customization/release/
4+
version: 2
45
release:
56
prerelease: auto
67
# Prune any dependencies that are no longer needed before the build starts
@@ -121,7 +122,7 @@ changelog:
121122
# The artifacts to be uploaded
122123
archives:
123124
- id: nix
124-
builds: [macos, linux]
125+
ids: [macos, linux]
125126
# Generate the compresed files based on the following templates
126127
name_template: >-
127128
{{ .ProjectName }}_
@@ -130,14 +131,16 @@ archives:
130131
{{- .Arch }}{{- .Arm }}
131132
# All files will be in a single directory. For example: gatekeeper_0.0.1_linux_amd64
132133
wrap_in_directory: true
133-
format: tar.gz
134+
formats:
135+
- tar.gz
134136
- id: windows
135-
builds: [windows]
137+
ids: [windows]
136138
# All files will be in a single directory. For example: gatekeeper_0.0.1_linux_amd64
137139
wrap_in_directory: true
138-
format: zip
140+
formats:
141+
- zip
139142
- id: nix-fips
140-
builds: [macos-fips, linux-fips]
143+
ids: [macos-fips, linux-fips]
141144
# Generate the compresed files based on the following templates
142145
name_template: >-
143146
{{ .ProjectName }}_
@@ -146,14 +149,16 @@ archives:
146149
{{- .Arch }}{{- .Arm }}_fips
147150
# All files will be in a single directory. For example: gatekeeper_0.0.1_linux_amd64
148151
wrap_in_directory: true
149-
format: tar.gz
152+
formats:
153+
- tar.gz
150154
- id: windows-fips
151-
builds: [windows-fips]
155+
ids: [windows-fips]
152156
name_template: >-
153157
{{ .ProjectName }}_
154158
{{- .Version }}_
155159
windows_
156160
{{- .Arch }}{{- .Arm }}_fips
157161
# All files will be in a single directory. For example: gatekeeper_0.0.1_linux_amd64
158162
wrap_in_directory: true
159-
format: zip
163+
formats:
164+
- zip

0 commit comments

Comments
 (0)