Skip to content

Commit

Permalink
Update GitHub Actions CI packages and command
Browse files Browse the repository at this point in the history
This change updates GitHub Actions packages actions/checkout to v4,
actions/setup-go to v5, and actions/upload-artifacts to v4 to resolve
NodeJS 16 deprecation warnings. It also updates GitHub Actions
set-output command which is also deprecated.

Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez committed Feb 12, 2024
1 parent 05cf624 commit e055a3e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

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

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

Expand All @@ -43,7 +43,7 @@ jobs:
- name: Upload OCI conformance results as build artifact
if: always() && steps.tests.outputs.has-report == 'true'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: oci-conformance-results-${{ matrix.go }}
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

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

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

Expand All @@ -43,7 +43,7 @@ jobs:
- name: Upload OCI conformance results as build artifact
if: always() && steps.tests.outputs.has-report == 'true'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: oci-conformance-results-${{ matrix.go }}
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-action-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Start a test registry (zot)
run: |
set -x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conformance-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Start a test registry (zot)
run: |
set -x
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare
id: prepare
Expand All @@ -35,20 +35,20 @@ jobs:
MAJOR=${MINOR%.*}
TAGS="${TAGS},${IMAGE}:${MINOR},${IMAGE}:${MAJOR}"
fi
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')
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
- name: Docker Login
uses: docker/login-action@v2
uses: docker/login-action@v3
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@v3
uses: docker/build-push-action@v5
with:
context: conformance/
# platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
Expand Down

0 comments on commit e055a3e

Please sign in to comment.