mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
chore: update ubuntu version for Github action runnners (#3257)
* chore: update ubuntu version for Github action runnners * update the ubuntu version for docs actions
This commit is contained in:
2
.github/workflows/mkdocs-dev.yaml
vendored
2
.github/workflows/mkdocs-dev.yaml
vendored
@@ -9,7 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy the dev documentation
|
name: Deploy the dev documentation
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- name: Checkout main
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
2
.github/workflows/mkdocs-latest.yaml
vendored
2
.github/workflows/mkdocs-latest.yaml
vendored
@@ -11,7 +11,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy the latest documentation
|
name: Deploy the latest documentation
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- name: Checkout main
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
deploy-packages:
|
deploy-packages:
|
||||||
name: Deploy rpm/dep packages
|
name: Deploy rpm/dep packages
|
||||||
needs: release # run this job after 'release' job completes
|
needs: release # run this job after 'release' job completes
|
||||||
runs-on: ubuntu-18.04 # 20.04 doesn't provide createrepo for now
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install rpm reprepro createrepo distro-info
|
sudo apt-get -y install rpm reprepro createrepo-c distro-info
|
||||||
|
|
||||||
- name: Checkout trivy-repo
|
- name: Checkout trivy-repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ function create_rpm_repo () {
|
|||||||
mkdir -p $rpm_path
|
mkdir -p $rpm_path
|
||||||
cp ../dist/*64bit.rpm ${rpm_path}/${RPM_EL}
|
cp ../dist/*64bit.rpm ${rpm_path}/${RPM_EL}
|
||||||
|
|
||||||
createrepo --update $rpm_path
|
createrepo_c --update $rpm_path
|
||||||
}
|
}
|
||||||
|
|
||||||
cd trivy-repo
|
cd trivy-repo
|
||||||
|
|||||||
Reference in New Issue
Block a user