From 78e4b4b75f2f41809e73d1d53a689374ebeba55f Mon Sep 17 00:00:00 2001 From: "Mark S. Lewis" Date: Thu, 8 Feb 2024 12:50:14 +0000 Subject: [PATCH] Update build to avoid deprecated Node 16 GitHub actions (#329) Signed-off-by: Mark S. Lewis --- .github/workflows/release.yml | 16 ++++++++-------- .github/workflows/scheduled-scan.yml | 2 +- .github/workflows/test.yml | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8038c82..d1e9b22e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Push to registry ${{ matrix.publish_target }} run: | set -xev @@ -67,30 +67,30 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Build the dependencies needed for the image - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: | :fabric-chaincode-docker:copyAllDeps - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug config-inline: | [worker.oci] max-parallelism = 1 - name: Login to the ${{ matrix.DOCKER_REGISTRY }} Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ matrix.DOCKER_REGISTRY }} username: ${{ matrix.DOCKER_REGISTRY == 'docker.io' && secrets.DOCKERHUB_USERNAME || github.actor }} password: ${{ matrix.DOCKER_REGISTRY == 'docker.io' && secrets.DOCKERHUB_TOKEN || secrets.GITHUB_TOKEN }} - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ matrix.DOCKER_REGISTRY }}/${{ github.repository_owner }}/fabric-javaenv tags: | @@ -99,7 +99,7 @@ jobs: type=semver,pattern={{major}}.{{minor}}.{{patch}} - name: Build and push ${{ matrix.COMPONENT }} Image id: push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64 file: fabric-chaincode-docker/Dockerfile diff --git a/.github/workflows/scheduled-scan.yml b/.github/workflows/scheduled-scan.yml index 8e778d33..c303b270 100644 --- a/.github/workflows/scheduled-scan.yml +++ b/.github/workflows/scheduled-scan.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: stable - name: Scan diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e6d3f69..c3a3bc74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,9 +25,9 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Build and Unit test - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: | :fabric-chaincode-shim:build @@ -63,7 +63,7 @@ jobs: peer version weft --version - name: Integration Tests - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: | :fabric-chaincode-integration-test:build