Skip to content

Commit 8087d5c

Browse files
committed
Updates GHA to versions and bumps Go to 1.17
Signed-off-by: Brandon Mitchell <[email protected]>
1 parent 69141b9 commit 8087d5c

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

.github/workflows/build-pr.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ on:
88
jobs:
99
run:
1010
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
go: ['1.17', '1.18', '1.19']
15+
1116
steps:
1217
- name: checkout source code
13-
uses: actions/checkout@master
18+
uses: actions/checkout@v3
19+
1420
- name: setup go environment
15-
uses: actions/setup-go@v1
21+
uses: actions/setup-go@v3
1622
with:
17-
go-version: '1.16.5'
23+
go-version: ${{ matrix.go }}
24+
1825
- name: run tests
1926
run: |
2027
export PATH="$(go env GOPATH)/bin:${PATH}"

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ on:
88
jobs:
99
run:
1010
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
go: ['1.17', '1.18', '1.19']
15+
1116
steps:
1217
- name: checkout source code
13-
uses: actions/checkout@master
18+
uses: actions/checkout@v3
19+
1420
- name: setup go environment
15-
uses: actions/setup-go@v1
21+
uses: actions/setup-go@v3
1622
with:
17-
go-version: '1.16.5'
23+
go-version: ${{ matrix.go }}
24+
1825
- name: run tests
1926
run: |
2027
export PATH="$(go env GOPATH)/bin:${PATH}"

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
16+
1617
- name: Prepare
1718
id: prepare
1819
run: |
@@ -37,15 +38,17 @@ jobs:
3738
echo ::set-output name=version::${VERSION}
3839
echo ::set-output name=tags::${TAGS}
3940
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
41+
4042
- name: Docker Login
41-
uses: docker/login-action@v1
43+
uses: docker/login-action@v2
4244
if: github.repository_owner == 'opencontainers'
4345
with:
4446
registry: ghcr.io
4547
username: ${{ secrets.GHCR_USER }}
4648
password: ${{ secrets.GHCR_TOKEN }}
49+
4750
- name: Build and push
48-
uses: docker/build-push-action@v2
51+
uses: docker/build-push-action@v3
4952
with:
5053
context: conformance/
5154
# platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x

specs-go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/opencontainers/distribution-spec/specs-go
22

3-
go 1.15
3+
go 1.17

0 commit comments

Comments
 (0)