Skip to content

Commit ab45490

Browse files
committed
chore: update workflow & modules
1 parent f4278c2 commit ab45490

File tree

3 files changed

+93
-81
lines changed

3 files changed

+93
-81
lines changed

.github/workflows/build-and-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535

3636
# Bump version and create tag.
3737
- name: Bump Version and Create Tag
38+
if: ${{ github.event_name != 'pull_request' }}
3839
id: bump_version
3940
uses: anothrnick/[email protected]
4041
env:
@@ -51,21 +52,25 @@ jobs:
5152
5253
# Set up QEMU for multi-arch builds.
5354
- name: Set up QEMU
55+
if: ${{ github.event_name != 'pull_request' }}
5456
uses: docker/setup-qemu-action@v2
5557

5658
# Set up Docker Buildx.
5759
- name: Set up Docker Buildx
60+
if: ${{ github.event_name != 'pull_request' }}
5861
uses: docker/setup-buildx-action@v3
5962

6063
# Log in to Docker Hub.
6164
- name: Log in to Docker Hub
65+
if: ${{ github.event_name != 'pull_request' }}
6266
uses: docker/login-action@v3
6367
with:
6468
username: ${{ secrets.DOCKERHUB_USERNAME }}
6569
password: ${{ secrets.DOCKERHUB_PASSWORD }}
6670

6771
# Build and push the Docker image using the locally built binary.
6872
- name: Build and push Docker image
73+
if: ${{ github.event_name != 'pull_request' }}
6974
uses: docker/build-push-action@v5
7075
with:
7176
push: true
@@ -82,14 +87,15 @@ jobs:
8287
8388
# Upload the built binary as an artifact
8489
- name: Upload kpeek binary
90+
if: ${{ github.event_name != 'pull_request' }}
8591
uses: actions/upload-artifact@v4
8692
with:
8793
name: kpeek-binary
8894
path: kpeek
8995

9096
# Create GitHub Release.
9197
- name: Create GitHub Release
92-
if: ${{ success() }}
98+
if: ${{ github.event_name != 'pull_request' }} && success() }}
9399
id: create_release
94100
uses: actions/create-release@v1
95101
with:

go.mod

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,65 @@ module github.com/hacktivist123/kpeek
33
go 1.24.0
44

55
require (
6+
github.com/blang/semver v3.5.1+incompatible
67
github.com/fatih/color v1.18.0
7-
github.com/jedib0t/go-pretty/v6 v6.6.5
8-
github.com/spf13/cobra v1.8.1
9-
k8s.io/api v0.32.0
10-
k8s.io/apimachinery v0.32.0
11-
k8s.io/client-go v0.32.0
8+
github.com/jedib0t/go-pretty/v6 v6.6.7
9+
github.com/rhysd/go-github-selfupdate v1.2.3
10+
github.com/spf13/cobra v1.9.1
11+
k8s.io/api v0.32.3
12+
k8s.io/apimachinery v0.32.3
13+
k8s.io/client-go v0.32.3
1214
)
1315

1416
require (
15-
github.com/blang/semver v3.5.1+incompatible // indirect
1617
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
17-
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
18-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
18+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
19+
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
1920
github.com/go-logr/logr v1.4.2 // indirect
20-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
21+
github.com/go-openapi/jsonpointer v0.21.1 // indirect
2122
github.com/go-openapi/jsonreference v0.21.0 // indirect
22-
github.com/go-openapi/swag v0.23.0 // indirect
23+
github.com/go-openapi/swag v0.23.1 // indirect
2324
github.com/gogo/protobuf v1.3.2 // indirect
2425
github.com/golang/protobuf v1.5.4 // indirect
2526
github.com/google/gnostic-models v0.6.9 // indirect
26-
github.com/google/go-cmp v0.6.0 // indirect
27+
github.com/google/go-cmp v0.7.0 // indirect
2728
github.com/google/go-github/v30 v30.1.0 // indirect
28-
github.com/google/go-querystring v1.0.0 // indirect
29+
github.com/google/go-querystring v1.1.0 // indirect
2930
github.com/google/gofuzz v1.2.0 // indirect
3031
github.com/google/uuid v1.6.0 // indirect
3132
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf // indirect
3233
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3334
github.com/josharian/intern v1.0.0 // indirect
3435
github.com/json-iterator/go v1.1.12 // indirect
3536
github.com/mailru/easyjson v0.9.0 // indirect
36-
github.com/mattn/go-colorable v0.1.13 // indirect
37+
github.com/mattn/go-colorable v0.1.14 // indirect
3738
github.com/mattn/go-isatty v0.0.20 // indirect
3839
github.com/mattn/go-runewidth v0.0.16 // indirect
3940
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4041
github.com/modern-go/reflect2 v1.0.2 // indirect
4142
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4243
github.com/pkg/errors v0.9.1 // indirect
43-
github.com/rhysd/go-github-selfupdate v1.2.3 // indirect
4444
github.com/rivo/uniseg v0.4.7 // indirect
45-
github.com/spf13/pflag v1.0.5 // indirect
45+
github.com/spf13/pflag v1.0.6 // indirect
4646
github.com/tcnksm/go-gitconfig v0.1.2 // indirect
47-
github.com/ulikunitz/xz v0.5.9 // indirect
47+
github.com/ulikunitz/xz v0.5.12 // indirect
4848
github.com/x448/float16 v0.8.4 // indirect
49-
golang.org/x/crypto v0.31.0 // indirect
50-
golang.org/x/net v0.33.0 // indirect
51-
golang.org/x/oauth2 v0.24.0 // indirect
52-
golang.org/x/sys v0.28.0 // indirect
53-
golang.org/x/term v0.27.0 // indirect
54-
golang.org/x/text v0.21.0 // indirect
55-
golang.org/x/time v0.8.0 // indirect
56-
google.golang.org/protobuf v1.36.0 // indirect
49+
golang.org/x/crypto v0.36.0 // indirect
50+
golang.org/x/net v0.38.0 // indirect
51+
golang.org/x/oauth2 v0.28.0 // indirect
52+
golang.org/x/sys v0.31.0 // indirect
53+
golang.org/x/term v0.30.0 // indirect
54+
golang.org/x/text v0.23.0 // indirect
55+
golang.org/x/time v0.11.0 // indirect
56+
google.golang.org/protobuf v1.36.6 // indirect
5757
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
5858
gopkg.in/inf.v0 v0.9.1 // indirect
5959
gopkg.in/yaml.v3 v3.0.1 // indirect
6060
k8s.io/klog/v2 v2.130.1 // indirect
61-
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
62-
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect
61+
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
62+
k8s.io/utils v0.0.0-20250321185631-1f6e0b77f77e // indirect
6363
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
64-
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
64+
sigs.k8s.io/randfill v1.0.0 // indirect
65+
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
6566
sigs.k8s.io/yaml v1.4.0 // indirect
6667
)

0 commit comments

Comments
 (0)