Skip to content

Commit

Permalink
ci: upgrade and pin to ubuntu-22.04 project-wide for CI runner images
Browse files Browse the repository at this point in the history
1. This does not upgrade all the container images that we build and publish
as part of the project, it just upgrades the runner images that are being
used by the continuous integration environment.
2. I also deleted a .yaml file that I left in the diff of another pull request
by accident. Apologies for the littering.
3. Upgrade: as-in, I bumped the 20.04 versions to 22.04
4. Pin: as-in, replaced `ubuntu-latest` with `ubuntu-22.04` everywhere.
5. Reasoning: 24.04 is out now and so we have to keep up with the times
because soon there'll be a stop to security patches even on what used to
be LTS (20.04). It is better to find out now if we have a problem with
ubuntu 22.04 rather than later when it's become urgent to upgrade.
6. The risk of something breaking because of these upgrades is most likely
low since ubuntu is one of the most stable distributions out there.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Mar 13, 2024
1 parent dec0f3b commit fd8fc6f
Show file tree
Hide file tree
Showing 50 changed files with 181 additions and 599 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/.dast-nuclei-cmd-api-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
nuclei-scan:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install Indy SDK
run: >
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:

build-and-publish-packages:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
- run: git fetch --unshallow --prune
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/besu-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/besu-all-in-one/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cacti-dev-container-vscode-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./packages/cactus-plugin-ledger-connector-fabric/Dockerfile
Expand Down
170 changes: 85 additions & 85 deletions .github/workflows/ci.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/cmd-api-server-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./packages/cactus-cmd-api-server/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commitlint-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:

jobs:
commitlint:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connector-besu-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./packages/cactus-plugin-ledger-connector-fabric/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connector-corda-server-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./packages/cactus-plugin-ledger-connector-corda/src/main-server/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/connector-fabric-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./packages/cactus-plugin-ledger-connector-besu/Dockerfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
# FIXME: build arguments are needed to make it version 4.6 (default is 4.7)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/corda-all-in-one/Dockerfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/corda-all-in-one/corda-v4_8/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependent-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:

jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Dependent Issues
steps:
- uses: z0al/dependent-issues@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
deploy-docs:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4.1.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-container-vscode-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./.devcontainer/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-carbon-accounting-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./examples/carbon-accounting/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-supply-chain-app-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./examples/cactus-example-supply-chain-backend/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fabric-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/fabric-all-in-one/Dockerfile_v1.4.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fabric2-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/fabric-all-in-one/Dockerfile_v2.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/geth-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/geth-all-in-one/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gg-shield-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
scanning:
name: GitGuardian scan
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install Indy SDK
run: >
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iroha-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/iroha-all-in-one/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/iroha2-all-in-one/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/keychain-vault-server-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./packages/cactus-plugin-keychain-vault/src/cactus-keychain-vault-server/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
jobs:

build-and-publish-packages:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quorum-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/quorum-all-in-one/Dockerfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/quorum-multi-party-all-in-one/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sawtooth-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
build-tag-push-container:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
DOCKER_BUILDKIT: 1
DOCKERFILE_PATH: ./tools/docker/sawtooth-all-in-one/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
main:
name: Validate PR title
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: amannn/action-semantic-pull-request@v5.0.2
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_weaver-asset-exchange-besu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
check_code_changed:
outputs:
status: ${{ steps.changes.outputs.weaver_code_changed }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1

Expand All @@ -41,7 +41,7 @@ jobs:
needs: check_code_changed
if: ${{ false }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:
asset-exchange-besu-local:
needs: check_code_changed
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_weaver-asset-exchange-corda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
check_code_changed:
outputs:
status: ${{ steps.changes.outputs.weaver_code_changed }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1

Expand All @@ -42,7 +42,7 @@ jobs:
needs: check_code_changed
if: ${{ false && needs.check_code_changed.outputs.status == 'true' }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
needs: check_code_changed
if: needs.check_code_changed.outputs.status == 'true'
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
needs: check_code_changed
if: ${{ false && needs.check_code_changed.outputs.status == 'true' }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_weaver-asset-exchange-fabric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
check_code_changed:
outputs:
status: ${{ steps.changes.outputs.weaver_code_changed }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1

Expand All @@ -46,7 +46,7 @@ jobs:
needs: check_code_changed
if: ${{ false && needs.check_code_changed.outputs.status == 'true' }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
if: needs.check_code_changed.outputs.status == 'true'
# if: ${{ false }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_weaver-asset-transfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
check_code_changed:
outputs:
status: ${{ steps.changes.outputs.weaver_code_changed }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1

Expand All @@ -45,7 +45,7 @@ jobs:
needs: check_code_changed
if: ${{ false && needs.check_code_changed.outputs.status == 'true' }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -690,7 +690,7 @@ jobs:
if: needs.check_code_changed.outputs.status == 'true'
# if: ${{ false }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
Loading

0 comments on commit fd8fc6f

Please sign in to comment.