File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed
Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 steps :
99 - uses : actions/checkout@v4
10- - uses : WillAbides /setup-go-faster@v1.14.0
10+ - uses : actions /setup-go@v5
1111 with :
1212 go-version : ' stable'
13- - name : Go Mod Cache
14- uses : actions/cache@v4
15- with :
16- path : ~/go/pkg/mod
17- key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
1813 - run : " go test ./..."
1914 - run : " go vet ./..."
2015 golangci-lint :
2116 name : " Run GolangCI-Lint Code Analysis"
2217 runs-on : ubuntu-latest
2318 steps :
2419 - uses : actions/checkout@v4
25- - uses : WillAbides /setup-go-faster@v1.14.0
20+ - uses : actions /setup-go@v5
2621 with :
2722 go-version : ' stable'
2823 - name : golangci-lint
29- uses : golangci/golangci-lint-action@v4
24+ uses : golangci/golangci-lint-action@v6
3025 with :
3126 version : latest
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Build Container
22
33on :
44 push :
5+ branches :
6+ - main
7+ tags :
8+ - v*
59
610jobs :
711 build :
@@ -12,14 +16,14 @@ jobs:
1216 - name : Set up Docker Buildx
1317 uses : docker/setup-buildx-action@v3
1418 - name : Login to GitHub Container Registry
15- uses : docker/login-action@v2
19+ uses : docker/login-action@v3
1620 with :
1721 registry : ghcr.io
1822 username : ${{ github.repository_owner }}
1923 password : ${{ secrets.GITHUB_TOKEN }}
2024 - if : " startsWith(github.ref, 'refs/tags/v')"
2125 name : build container (release)
22- uses : docker/build-push-action@v5
26+ uses : docker/build-push-action@v6
2327 with :
2428 push : true
2529 platforms : linux/amd64,linux/arm64
3135 ghcr.io/deltalaboratory/postgres-backup:${{ github.sha }}
3236 - if : " !startsWith(github.ref, 'refs/tags/v')"
3337 name : build container (development)
34- uses : docker/build-push-action@v5
38+ uses : docker/build-push-action@v6
3539 with :
3640 push : true
3741 platforms : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments