Skip to content

Commit

Permalink
Change ubuntu version from latest to 20.04 (chaos-mesh#3817)
Browse files Browse the repository at this point in the history
* change ubuntu version from latest to 20.04

Signed-off-by: Ningxuan Wang <[email protected]>

* update CHANGELOG.md

Signed-off-by: Ningxuan Wang <[email protected]>

Signed-off-by: Ningxuan Wang <[email protected]>
  • Loading branch information
FingerLeader authored Nov 24, 2022
1 parent c058d88 commit f7cb8eb
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checklink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions: read-all

jobs:
markdown-link-check:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions: read-all
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
# Set job outputs to values from filter step
outputs:
go: ${{ steps.filter.outputs.go }}
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
- verify
- build
- test
runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
runs-on: ${{ fromJson('{"amd64":"ubuntu-20.04", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
- build
- test
# node-version: ["14"] # TODO: add nodejs-16?
runs-on: "ubuntu-latest"
runs-on: "ubuntu-20.04"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions: read-all

jobs:
skip-changes:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
go: ${{ steps.filter.outputs.go }}
ui: ${{ steps.filter.outputs.ui }}
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- verify
- build
- test
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- run: echo "Not required to run go jobs."
ui:
Expand All @@ -51,6 +51,6 @@ jobs:
- verify
- build
- test
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- run: echo "Not required to run ui jobs."
2 changes: 1 addition & 1 deletion .github/workflows/codecov_unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions: read-all
jobs:
unitTestAndCodeCoverage:
name: "Unit Test And Code Coverage"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions: read-all

jobs:
changed-files:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
only_changed: ${{ steps.filter.outputs.only_changed }}
steps:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
build-image:
needs: changed-files
if: needs.changed-files.outputs.only_changed == 'false'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: checkout codes
uses: actions/checkout@v2
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
build-e2e-binary:
needs: changed-files
if: needs.changed-files.outputs.only_changed == 'false'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: checkout codes
uses: actions/checkout@v2
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
needs:
- build-image
- build-e2e-binary
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -241,6 +241,6 @@ jobs:
needs:
- e2e-test-matrix
name: E2E Test Passed
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- run: echo "🎉 E2E Test Passed!"
4 changes: 2 additions & 2 deletions .github/workflows/e2e_test_upload_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ permissions: read-all

jobs:
build-image:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: checkout codes
uses: actions/checkout@v2
Expand All @@ -50,7 +50,7 @@ jobs:
key: e2e-image-build-cache-${{ runner.os }}

build-e2e-binary:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: checkout codes
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
fail-fast: false
matrix:
arch: [amd64, arm64]
runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
runs-on: ${{ fromJson('{"amd64":"ubuntu-20.04", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions: read-all

jobs:
check-license:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Check License Header
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/must_update_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions: read-all
jobs:
must-update-changelog:
name: "Must Update CHANGELOG"
runs-on: "ubuntu-latest"
runs-on: "ubuntu-20.04"
env:
LABEL_EXISTS: ${{ contains(github.event.pull_request.labels.*.name, 'no-need-update-changelog') }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_helm_chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions: read-all

jobs:
release-chart:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: "Must Triggered by Tag chart-<version>"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: read-all

jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/stale@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload_env_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
permissions:
# https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#authenticating-to-package-registries-on-github
packages: write
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
arch: [amd64, arm64]
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
permissions:
# https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#authenticating-to-package-registries-on-github
packages: write
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
image: [dev, build]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/upload_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
[chaos-daemon, chaos-mesh, chaos-dashboard, chaos-kernel, chaos-dlv]
outputs:
image_tag: ${{ steps.image_tag.outputs.image_tag }}
runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
runs-on: ${{ fromJson('{"amd64":"ubuntu-20.04", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
upload-manifest:
needs: build-specific-architecture
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
permissions:
# https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#authenticating-to-package-registries-on-github
packages: write
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
- build-specific-architecture
- upload-manifest
if: needs.build-specific-architecture.outputs.image_tag != 'latest'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
permissions:
contents: write # Need to upload files to the related release.
# https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#authenticating-to-package-registries-on-github
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
sbom:
needs: build-specific-architecture
if: needs.build-specific-architecture.outputs.image_tag != 'latest'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
permissions:
contents: write # Need to upload files to the related release.
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload_image_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: read-all

jobs:
build-for-pr:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: ${{ github.event.issue.pull_request && startsWith( github.event.comment.body, '/build-image') }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload_latest_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run:
if: github.repository_owner == 'chaos-mesh'
name: Upload
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload_release_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions: read-all
jobs:
run:
name: Upload
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: "Must Triggered by Tag v<version>"
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ For more information and how-to, see [RFC: Keep A Changelog](https://github.com/
- Use the next generation `New Workflow` UI by default [#3718](https://github.com/chaos-mesh/chaos-mesh/pull/3718)
- StressChaos: Support cgroup v2 for docker and crio [#3698](https://github.com/chaos-mesh/chaos-mesh/pull/3698)
- Bump go to v1.19.3 [#3770](https://github.com/chaos-mesh/chaos-mesh/pull/3770)
- Change ubuntu version from latest to 20.04 [#3817](https://github.com/chaos-mesh/chaos-mesh/pull/3817)

### Deprecated

Expand Down

0 comments on commit f7cb8eb

Please sign in to comment.