mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Bump ubuntu to 22.04 in CI
Since Fabric v3.0 builds on ubuntu 22.04, it is necessary for samples CI to run on ubuntu 22.04. Both Fabric v2.5 components (ubuntu 20.04) and Fabric v3.0 components (ubuntu 22.04) work on ubuntu 22.04 runtime. The update also requires shell script updates to pass linting. Signed-off-by: David Enyeart <enyeart@us.ibm.com>
This commit is contained in:
parent
ce5aa883ee
commit
571d51671d
16 changed files with 27 additions and 27 deletions
10
.github/workflows/lint.yaml
vendored
10
.github/workflows/lint.yaml
vendored
|
|
@ -22,7 +22,7 @@ env:
|
|||
|
||||
jobs:
|
||||
go:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
- run: ci/scripts/lint-go.sh
|
||||
|
||||
typescript:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
- run: ci/scripts/lint-typescript.sh
|
||||
|
||||
javascript:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
|
|
@ -50,7 +50,7 @@ jobs:
|
|||
- run: ci/scripts/lint-javascript.sh
|
||||
|
||||
java:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
|
|
@ -60,7 +60,7 @@ jobs:
|
|||
- run: ci/scripts/lint-java.sh
|
||||
|
||||
shell:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: ci/scripts/lint-shell.sh
|
||||
|
|
|
|||
2
.github/workflows/rest-sample.yaml
vendored
2
.github/workflows/rest-sample.yaml
vendored
|
|
@ -22,7 +22,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
test-sample:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
|||
10
.github/workflows/test-fsat.yaml
vendored
10
.github/workflows/test-fsat.yaml
vendored
|
|
@ -14,7 +14,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
ansible:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Full Stack Runtime
|
||||
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
working-directory: full-stack-asset-transfer-guide
|
||||
|
||||
appdev:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Full Stack Runtime
|
||||
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
working-directory: full-stack-asset-transfer-guide
|
||||
|
||||
chaincode:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Full Stack Runtime
|
||||
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
working-directory: full-stack-asset-transfer-guide
|
||||
|
||||
cloud:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Full Stack Runtime
|
||||
|
|
@ -50,7 +50,7 @@ jobs:
|
|||
working-directory: full-stack-asset-transfer-guide
|
||||
|
||||
console:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Full Stack Runtime
|
||||
|
|
|
|||
2
.github/workflows/test-network-basic.yaml
vendored
2
.github/workflows/test-network-basic.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
basic:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
2
.github/workflows/test-network-events.yaml
vendored
2
.github/workflows/test-network-events.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
events:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
2
.github/workflows/test-network-hsm.yaml
vendored
2
.github/workflows/test-network-hsm.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
hsm:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
8
.github/workflows/test-network-k8s.yaml
vendored
8
.github/workflows/test-network-k8s.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
ccaas-java:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
CHAINCODE_LANGUAGE: java
|
||||
|
||||
ccaas-external:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
CHAINCODE_LANGUAGE: external
|
||||
|
||||
k8s-builder:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -54,7 +54,7 @@ jobs:
|
|||
CHAINCODE_BUILDER: k8s
|
||||
|
||||
multi-namespace:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
2
.github/workflows/test-network-ledger.yaml
vendored
2
.github/workflows/test-network-ledger.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
basic:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
off-chain:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
2
.github/workflows/test-network-private.yaml
vendored
2
.github/workflows/test-network-private.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
private:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
2
.github/workflows/test-network-sbe.yaml
vendored
2
.github/workflows/test-network-sbe.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
SBE:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
2
.github/workflows/test-network-secured.yaml
vendored
2
.github/workflows/test-network-secured.yaml
vendored
|
|
@ -17,7 +17,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
secured:
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
||||
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
||||
strategy:
|
||||
matrix:
|
||||
chaincode-language:
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ then
|
|||
echo "Unsupported input consensus type ${1}"
|
||||
exit 1
|
||||
fi
|
||||
export ORDERER_CONSENSUS_TYPE=${1}
|
||||
export ORDERER_CONSENSUS_TYPE="${1}"
|
||||
fi
|
||||
export ORDERER_CONSENSUS_WALDIR="${PWD}"/data/orderer/consensus/wal
|
||||
export ORDERER_CONSENSUS_SNAPDIR="${PWD}"/data/orderer/consensus/snap
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ then
|
|||
echo "Unsupported input consensus type ${1}"
|
||||
exit 1
|
||||
fi
|
||||
export ORDERER_CONSENSUS_TYPE=${1}
|
||||
export ORDERER_CONSENSUS_TYPE="${1}"
|
||||
fi
|
||||
export ORDERER_CONSENSUS_WALDIR="${PWD}"/data/orderer2/consensus/wal
|
||||
export ORDERER_CONSENSUS_SNAPDIR="${PWD}"/data/orderer2/consensus/snap
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ then
|
|||
echo "Unsupported input consensus type ${1}"
|
||||
exit 1
|
||||
fi
|
||||
export ORDERER_CONSENSUS_TYPE=${1}
|
||||
export ORDERER_CONSENSUS_TYPE="${1}"
|
||||
fi
|
||||
export ORDERER_CONSENSUS_WALDIR="${PWD}"/data/orderer3/consensus/wal
|
||||
export ORDERER_CONSENSUS_SNAPDIR="${PWD}"/data/orderer3/consensus/snap
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ then
|
|||
echo "Unsupported input consensus type ${1}"
|
||||
exit 1
|
||||
fi
|
||||
export ORDERER_CONSENSUS_TYPE=${1}
|
||||
export ORDERER_CONSENSUS_TYPE="${1}"
|
||||
fi
|
||||
export ORDERER_CONSENSUS_WALDIR="${PWD}"/data/orderer4/consensus/wal
|
||||
export ORDERER_CONSENSUS_SNAPDIR="${PWD}"/data/orderer4/consensus/snap
|
||||
|
|
|
|||
Loading…
Reference in a new issue