Skip to content

Commit

Permalink
Updates GHA to versions and bumps Go to 1.17
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Mitchell <git@bmitch.net>
  • Loading branch information
sudo-bmitch committed Sep 13, 2022
1 parent 69141b9 commit 8087d5c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ on:
jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.17', '1.18', '1.19']

steps:
- name: checkout source code
uses: actions/checkout@master
uses: actions/checkout@v3

- name: setup go environment
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: '1.16.5'
go-version: ${{ matrix.go }}

- name: run tests
run: |
export PATH="$(go env GOPATH)/bin:${PATH}"
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ on:
jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.17', '1.18', '1.19']

steps:
- name: checkout source code
uses: actions/checkout@master
uses: actions/checkout@v3

- name: setup go environment
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: '1.16.5'
go-version: ${{ matrix.go }}

- name: run tests
run: |
export PATH="$(go env GOPATH)/bin:${PATH}"
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Prepare
id: prepare
run: |
Expand All @@ -37,15 +38,17 @@ jobs:
echo ::set-output name=version::${VERSION}
echo ::set-output name=tags::${TAGS}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Docker Login
uses: docker/login-action@v1
uses: docker/login-action@v2
if: github.repository_owner == 'opencontainers'
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: conformance/
# platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
Expand Down
2 changes: 1 addition & 1 deletion specs-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/opencontainers/distribution-spec/specs-go

go 1.15
go 1.17

0 comments on commit 8087d5c

Please sign in to comment.