1515 pull_request :
1616 branches : [main]
1717
18- env :
19- GO_VERSION : " 1.25.5"
20-
2118jobs :
2219 lint :
2320 runs-on : ubuntu-latest
@@ -26,15 +23,10 @@ jobs:
2623 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2724
2825 - name : Set up Go
29- id : setup-go
3026 uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
3127 with :
32- go-version : ${{ env.GO_VERSION }}
28+ go-version : " 1.25.5 "
3329 cache : true
34- cache-dependency-path : go.sum
35-
36- - name : Go cache status
37- run : echo "cache-hit=${{ steps.setup-go.outputs.cache-hit }}"
3830
3931 - name : Lint
4032 uses : golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
@@ -48,15 +40,10 @@ jobs:
4840 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4941
5042 - name : Set up Go
51- id : setup-go
5243 uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
5344 with :
54- go-version : ${{ env.GO_VERSION }}
45+ go-version : " 1.25.5 "
5546 cache : true
56- cache-dependency-path : go.sum
57-
58- - name : Go cache status
59- run : echo "cache-hit=${{ steps.setup-go.outputs.cache-hit }}"
6047
6148 - name : Install Task
6249 uses : go-task/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1.0.0
@@ -73,15 +60,10 @@ jobs:
7360 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
7461
7562 - name : Set up Go
76- id : setup-go
7763 uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
7864 with :
79- go-version : ${{ env.GO_VERSION }}
65+ go-version : " 1.25.5 "
8066 cache : true
81- cache-dependency-path : go.sum
82-
83- - name : Go cache status
84- run : echo "cache-hit=${{ steps.setup-go.outputs.cache-hit }}"
8567
8668 - name : Install go-licences
8769 run : go install github.com/google/go-licenses@latest
@@ -97,15 +79,10 @@ jobs:
9779 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
9880
9981 - name : Set up Go
100- id : setup-go
10182 uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
10283 with :
103- go-version : ${{ env.GO_VERSION }}
84+ go-version : " 1.25.5 "
10485 cache : true
105- cache-dependency-path : go.sum
106-
107- - name : Go cache status
108- run : echo "cache-hit=${{ steps.setup-go.outputs.cache-hit }}"
10986
11087 - name : Install Task
11188 uses : go-task/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1.0.0
@@ -133,7 +110,6 @@ jobs:
133110 password : ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
134111
135112 - name : Set up Docker Buildx
136- id : buildx
137113 uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
138114
139115 - name : Docker metadata
@@ -146,26 +122,6 @@ jobs:
146122 type=edge
147123 type=ref,event=pr
148124
149- - name : Cache Go build mounts
150- id : cache
151- uses : actions/cache@v4
152- with :
153- path : .buildkit-cache
154- key : buildkit-${{ runner.os }}-${{ hashFiles('Dockerfile', 'go.sum') }}
155- restore-keys : |
156- buildkit-${{ runner.os }}-
157-
158- - name : Inject Go caches into builder
159- uses : reproducible-containers/buildkit-cache-dance@v3
160- with :
161- builder : ${{ steps.buildx.outputs.name }}
162- cache-map : |
163- {
164- ".buildkit-cache/go-mod": "/go/pkg/mod",
165- ".buildkit-cache/go-build": "/root/.cache/go-build"
166- }
167- skip-extraction : ${{ steps.cache.outputs.cache-hit }}
168-
169125 - name : Build and push image
170126 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
171127 with :
@@ -179,5 +135,3 @@ jobs:
179135 build-args : |
180136 GIT_TAG=${{ github.ref_name }}
181137 GIT_COMMIT=${{ github.sha }}
182- cache-from : type=gha,scope=cagent-image
183- cache-to : type=gha,mode=max,scope=cagent-image
0 commit comments