bump ci runner to ubuntu-20.04 as ubuntu-18.04 is deprecated.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
This commit is contained in:
parent
79e7820dac
commit
834dad945b
|
@ -7,7 +7,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
golangci:
|
||||||
name: lint
|
name: lint
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -23,7 +23,7 @@ jobs:
|
||||||
run: hack/verify-import-aliases.sh
|
run: hack/verify-import-aliases.sh
|
||||||
codegen:
|
codegen:
|
||||||
name: codegen
|
name: codegen
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
env:
|
env:
|
||||||
GOPATH: ${{ github.workspace }}
|
GOPATH: ${{ github.workspace }}
|
||||||
defaults:
|
defaults:
|
||||||
|
@ -53,7 +53,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: compile
|
name: compile
|
||||||
needs: codegen # rely on codegen successful completion
|
needs: codegen # rely on codegen successful completion
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -70,7 +70,7 @@ jobs:
|
||||||
test:
|
test:
|
||||||
name: unit test
|
name: unit test
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -83,7 +83,7 @@ jobs:
|
||||||
e2e:
|
e2e:
|
||||||
name: e2e test
|
name: e2e test
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
k8s: [ v1.21.10, v1.22.7, v1.23.4, v1.24.2 ]
|
k8s: [ v1.21.10, v1.22.7, v1.23.4, v1.24.2 ]
|
||||||
|
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- karmada-interpreter-webhook-example
|
- karmada-interpreter-webhook-example
|
||||||
- karmada-aggregated-apiserver
|
- karmada-aggregated-apiserver
|
||||||
- karmada-search
|
- karmada-search
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
- karmada-interpreter-webhook-example
|
- karmada-interpreter-webhook-example
|
||||||
- karmada-aggregated-apiserver
|
- karmada-aggregated-apiserver
|
||||||
- karmada-search
|
- karmada-search
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
# 1. running on the forked repository would fail as missing necessary secret.
|
# 1. running on the forked repository would fail as missing necessary secret.
|
||||||
# 2. running on the forked repository would use unnecessary GitHub Action time.
|
# 2. running on the forked repository would use unnecessary GitHub Action time.
|
||||||
if: ${{ github.repository == 'karmada-io/karmada' }}
|
if: ${{ github.repository == 'karmada-io/karmada' }}
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -6,7 +6,7 @@ name: Build Release
|
||||||
jobs:
|
jobs:
|
||||||
release-assests:
|
release-assests:
|
||||||
name: release kubectl-karmada
|
name: release kubectl-karmada
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
target:
|
||||||
|
@ -39,7 +39,7 @@ jobs:
|
||||||
update-krew-index:
|
update-krew-index:
|
||||||
needs: release-assests
|
needs: release-assests
|
||||||
name: Update krew-index
|
name: Update krew-index
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Update new version in krew-index
|
- name: Update new version in krew-index
|
||||||
|
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
# 1. running on the forked repository would fail as missing necessary secret.
|
# 1. running on the forked repository would fail as missing necessary secret.
|
||||||
# 2. running on the forked repository would use unnecessary GitHub Action time.
|
# 2. running on the forked repository would use unnecessary GitHub Action time.
|
||||||
if: ${{ github.repository == 'karmada-io/karmada' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.repository == 'karmada-io/karmada' && github.ref == 'refs/heads/master' }}
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
# 1. running on the forked repository would fail as missing necessary secret.
|
# 1. running on the forked repository would fail as missing necessary secret.
|
||||||
# 2. running on the forked repository would use unnecessary GitHub Action time.
|
# 2. running on the forked repository would use unnecessary GitHub Action time.
|
||||||
if: ${{ github.repository == 'karmada-io/karmada' }}
|
if: ${{ github.repository == 'karmada-io/karmada' }}
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in New Issue