Skip to content

Commit

Permalink
Update github workflows to ubuntu 22.04
Browse files Browse the repository at this point in the history
Update github workflows to ubuntu 22.04.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart committed Sep 17, 2024
1 parent 57646da commit 2d95a83
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/broken-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# Only run the scheduled job in hyperledger/fabric repository, not on personal forks
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'hyperledger/fabric')
name: "Check for Broken Links"
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
steps:
- name: Checkout Fabric Code
uses: actions/checkout@v4
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
GO_VER: 1.23.1
UBUNTU_VER: 20.04
UBUNTU_VER: 22.04
FABRIC_VER: ${{ github.ref_name }}
DOCKER_REGISTRY: ${{ github.repository_owner == 'hyperledger' && 'docker.io' || 'ghcr.io' }}

Expand All @@ -26,10 +26,10 @@ jobs:
strategy:
matrix:
include:
- image: fabric-ubuntu-20.04
- image: fabric-ubuntu-22.04
target: linux
arch: amd64
- image: fabric-ubuntu-20.04
- image: fabric-ubuntu-22.04
target: linux
arch: arm64
- image: macos-11
Expand All @@ -41,7 +41,7 @@ jobs:
- image: fabric-windows-latest
target: windows
arch: amd64
runs-on: fabric-ubuntu-20.04
runs-on: fabric-ubuntu-22.04
steps:
- name: Checkout Fabric Code
uses: actions/checkout@v4
Expand All @@ -65,7 +65,7 @@ jobs:

build-and-push-docker-images:
name: Build and Push
runs-on: fabric-ubuntu-20.04
runs-on: fabric-ubuntu-22.04

permissions:
contents: read
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
needs:
- build-binaries
- build-and-push-docker-images
runs-on: fabric-ubuntu-20.04
runs-on: fabric-ubuntu-22.04
permissions:
contents: write
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/verify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:
jobs:
basic-checks:
name: Basic Checks
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
steps:
- uses: actions/checkout@v4
name: Checkout Fabric Code
Expand All @@ -36,7 +36,7 @@ jobs:
unit-tests:
name: Unit Tests
needs: basic-checks
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
env:
GOEXPERIMENT: nocoverageredesign
steps:
Expand All @@ -59,7 +59,7 @@ jobs:
fail-fast: false
matrix:
INTEGRATION_TEST_SUITE: ["raft","pvtdata","pvtdatapurge","ledger","lifecycle","e2e smartbft","discovery gossip devmode pluggable","gateway idemix pkcs11 configtx configtxlator","sbe nwo msp"]
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
steps:
- uses: actions/checkout@v4
name: Checkout Fabric Code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
scan:
# Only run the scheduled job in hyperledger/fabric repository, not on personal forks
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'hyperledger/fabric')
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 2d95a83

Please sign in to comment.