File tree Expand file tree Collapse file tree 8 files changed +55
-35
lines changed Expand file tree Collapse file tree 8 files changed +55
-35
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ jobs:
12
12
name : lint
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - name : Set up Go
16
- uses : actions/setup-go@v5
17
- with :
18
- go-version : ' 1.22'
19
15
- uses : actions/checkout@v4
20
16
with :
21
17
fetch-depth : ' 0'
18
+ - name : Set up Go
19
+ uses : actions/setup-go@v5
20
+ with :
21
+ go-version-file : go.mod
22
22
- name : golangci-lint
23
23
uses : golangci/golangci-lint-action@v6
24
24
with :
Original file line number Diff line number Diff line change 22
22
- name : Set up Go
23
23
uses : actions/setup-go@v5
24
24
with :
25
- go-version : ' 1.22 '
25
+ go-version-file : go.mod
26
26
27
27
- name : Set up Cosign
28
28
uses : sigstore/cosign-installer@v3
Original file line number Diff line number Diff line change @@ -10,22 +10,16 @@ jobs:
10
10
name : Test GH 1.21
11
11
runs-on : ubuntu-20.04
12
12
steps :
13
- - name : Set up Go
14
- uses : actions/setup-go@v5
15
- with :
16
- go-version : ' 1.22'
17
13
- name : Check out code into the Go module directory
18
14
uses : actions/checkout@v4
15
+ - name : Set up Go
16
+ uses : actions/setup-go@v5
19
17
with :
20
- path : src/github.com/${{ github.repository }}
21
- fetch-depth : 0
18
+ go-version-file : go.mod
22
19
- name : Run Tests
23
20
run : |
24
21
set -e -x
25
22
26
- export GOPATH=$(pwd)
27
- cd src/github.com/${{ github.repository }}
28
-
29
23
# Install ytt for build
30
24
mkdir -p /tmp/bin
31
25
export PATH=/tmp/bin:$PATH
42
36
# Ensure that there is no existing kapp installed
43
37
rm -f /tmp/bin/kapp
44
38
45
- ./hack/build-binaries .sh
39
+ ./hack/build.sh
46
40
47
41
export KAPP_E2E_NAMESPACE=kapp-test
48
42
kubectl create ns $KAPP_E2E_NAMESPACE
Original file line number Diff line number Diff line change @@ -10,22 +10,16 @@ jobs:
10
10
name : Test GH
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - name : Set up Go
14
- uses : actions/setup-go@v5
15
- with :
16
- go-version : ' 1.22'
17
13
- name : Check out code into the Go module directory
18
14
uses : actions/checkout@v4
15
+ - name : Set up Go
16
+ uses : actions/setup-go@v5
19
17
with :
20
- path : src/github.com/${{ github.repository }}
21
- fetch-depth : 0
18
+ go-version-file : go.mod
22
19
- name : Run Tests
23
20
run : |
24
21
set -e -x
25
22
26
- export GOPATH=$(pwd)
27
- cd src/github.com/${{ github.repository }}
28
-
29
23
# Install ytt for build
30
24
mkdir -p /tmp/bin
31
25
export PATH=/tmp/bin:$PATH
42
36
# Ensure that there is no existing kapp installed
43
37
rm -f /tmp/bin/kapp
44
38
45
- ./hack/build-binaries .sh
39
+ ./hack/build.sh
46
40
47
41
export KAPP_E2E_NAMESPACE=kapp-test
48
42
kubectl create ns $KAPP_E2E_NAMESPACE
Original file line number Diff line number Diff line change 11
11
with :
12
12
repo : carvel-dev/kapp
13
13
tool : kapp
14
- goVersion : ' 1.22'
15
14
secrets :
16
15
githubToken : ${{ secrets.GITHUB_TOKEN }}
17
16
slackWebhookURL : ${{ secrets.SLACK_WEBHOOK_URL }}
Original file line number Diff line number Diff line change
1
+ name : go-updater
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 12 * * *'
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ update-go :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v4.1.2
14
+ with :
15
+ fetch-depth : 0
16
+ - name : Set up Go 1.x
17
+ uses : actions/setup-go@v5
18
+ with :
19
+ go-version : ' stable'
20
+ check-latest : true
21
+ - name : Update Go
22
+ run : go get go
23
+ - name : Create Pull Request
24
+ uses : peter-evans/create-pull-request@v6
25
+ with :
26
+ token : ${{ secrets.CARVEL_BOT_ACCESS_TOKEN }}
27
+ committer : Carvel Bot <svc.bot.carvel@vmware.com>
28
+ author : Carvel Bot <svc.bot.carvel@vmware.com>
29
+ commit-message : |
30
+ Bump go
31
+
32
+ Signed-off-by: Carvel Bot <svc.bot.carvel@vmware.com>
33
+ title : Bump go
34
+ delete-branch : true
35
+ body : |
36
+ Auto-generated by https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
37
+
38
+ Signed-off-by: Carvel Bot <svc.bot.carvel@vmware.com>
39
+ base : develop
40
+ branch : bump-go
Original file line number Diff line number Diff line change 1
1
module carvel.dev/kapp
2
2
3
- go 1.22.3
3
+ go 1.22.5
4
4
5
5
require (
6
6
github.com/cppforlife/cobrautil v0.0.0-20221130162803-acdfead391ef
Original file line number Diff line number Diff line change 2
2
3
3
set -e -x -u
4
4
5
- function get_latest_git_tag {
6
- git describe --tags | grep -Eo ' [0-9]+\.[0-9]+\.[0-9]+'
7
- }
8
-
9
- VERSION=" ${1:- `get_latest_git_tag`} "
10
-
11
5
# makes builds reproducible
12
6
export CGO_ENABLED=0
13
- LDFLAGS=" -X carvel.dev/kapp/pkg/kapp/version.Version=$VERSION -buildid="
14
7
15
8
go mod vendor
16
9
go mod tidy
17
10
go fmt ./cmd/... ./pkg/... ./test/...
18
11
19
- go build -ldflags= " $LDFLAGS " - trimpath -o kapp ./cmd/kapp/...
12
+ go build -trimpath -o kapp ./cmd/kapp/...
20
13
./kapp version
21
14
22
15
# compile tests, but do not run them: https://github.com/golang/go/issues/15513#issuecomment-839126426
You can’t perform that action at this time.
0 commit comments