Skip to content

Commit 7fa6ace

Browse files
authored
Merge pull request #817 from deniszh/deniszh/pipeline
switching pipeline to stable/oldstable
2 parents 4a86b7c + 6c5e041 commit 7fa6ace

File tree

4 files changed

+19
-30
lines changed

4 files changed

+19
-30
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Checkout repository
31-
uses: actions/checkout@v5
31+
uses: actions/checkout@v6
3232
with:
3333
# We must fetch at least the immediate parents so that if this is
3434
# a pull request then we can checkout the head.

.github/workflows/docker-ghcrio.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- prepare
6363
steps:
6464
- name: Check out code
65-
uses: actions/checkout@v5
65+
uses: actions/checkout@v6
6666
with:
6767
fetch-tags: true
6868

@@ -71,10 +71,10 @@ jobs:
7171
uses: docker/metadata-action@v5
7272
with:
7373
images: ghcr.io/${{ github.repository }}
74-
74+
7575
- name: Set up Docker Buildx
7676
uses: docker/setup-buildx-action@v3
77-
77+
7878
- name: Build
7979
uses: docker/build-push-action@v6
8080
with:
@@ -111,14 +111,14 @@ jobs:
111111
112112
- name: Check out code
113113
if: github.event_name == 'workflow_dispatch'
114-
uses: actions/checkout@v5
114+
uses: actions/checkout@v6
115115
with:
116116
ref: ${{ inputs.ref }}
117117
fetch-tags: true
118118

119119
- name: Check out code
120120
if: github.event_name != 'workflow_dispatch'
121-
uses: actions/checkout@v5
121+
uses: actions/checkout@v6
122122
with:
123123
fetch-tags: true
124124

@@ -127,17 +127,17 @@ jobs:
127127
uses: docker/metadata-action@v5
128128
with:
129129
images: ghcr.io/${{ github.repository }}
130-
130+
131131
- name: Set up QEMU
132132
uses: docker/setup-qemu-action@v3
133133
if: ${{ matrix.platform.qemu }}
134134
with:
135135
platforms: ${{ matrix.platform.qemu }}
136136
cache-image: false
137-
137+
138138
- name: Set up Docker Buildx
139139
uses: docker/setup-buildx-action@v3
140-
140+
141141
- name: Login to GitHub Container Registry
142142
if: needs.prepare.outputs.publish_image
143143
uses: docker/login-action@v3
@@ -230,5 +230,3 @@ jobs:
230230
231231
- name: Inspect image
232232
run: docker buildx imagetools inspect ghcr.io/${{ needs.prepare.outputs.github_repository }}:${{ steps.meta.outputs.version }}
233-
234-

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
matrix: ${{ steps.build.outputs.matrix }}
1818
steps:
1919
- name: Set up Go
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v6
2121
with:
2222
go-version: ^1
2323

24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
name: Checkout
2626

2727
- name: Test

.github/workflows/tests.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,24 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
tests:
1111
name: Test code
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
go: [ 1.22.x, 1.23.x, 1.24.x, tip ]
15+
go: [oldstable, stable]
1616

1717
steps:
1818
- name: Set up Go stable
19-
if: matrix.go != 'tip'
20-
uses: actions/setup-go@v5
19+
uses: actions/setup-go@v6
2120
with:
2221
go-version: ${{ matrix.go }}
23-
- name: Set up Go tip
24-
if: matrix.go == 'tip'
25-
run: |
26-
curl -o go.tar.gz -L \
27-
https://github.com/AlekSi/golang-tip/releases/download/tip/master.linux-amd64.tar.gz
28-
sudo tar -C /usr/local -xzf go.tar.gz
29-
sudo ln -s /usr/local/go/bin/* /usr/local/bin/
30-
/usr/local/bin/go version
31-
echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV
22+
check-latest: true
3223

3324
- name: Check out code into the Go module directory
3425
uses: actions/checkout@v5
@@ -55,7 +46,7 @@ jobs:
5546
CGO_ENABLED: 1
5647

5748
- name: Govulncheck
58-
if: ${{ matrix.go == '1.24.x' }} # only do govulncheck when built with latest stable go
49+
if: ${{ matrix.go == 'stable' }} # only do govulncheck when built with latest stable go
5950
id: govulncheck
6051
uses: golang/govulncheck-action@v1
6152
with:
@@ -74,7 +65,7 @@ jobs:
7465
make sum-files
7566
7667
- name: Upload Artifact
77-
if: ${{ matrix.go == '1.24.x' }} # only upload artifact when built with latest stable go
68+
if: ${{ matrix.go == 'stable' }} # only upload artifact when built with latest stable go
7869
id: artifact
7970
uses: actions/upload-artifact@v6
8071
with:
@@ -87,7 +78,7 @@ jobs:
8778
md5sum
8879
8980
- name: Push packages to the autobuilds repo
90-
if: ${{ github.event_name == 'push' && matrix.go == '1.24.x' }} # only when built from master with latest stable go
81+
if: ${{ github.event_name == 'push' && matrix.go == 'stable' }} # only when built from master with latest stable go
9182
run: make DEVEL=1 packagecloud-autobuilds
9283
env:
9384
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}

0 commit comments

Comments
 (0)