Skip to content

Commit

Permalink
ci: ubuntu 18.04 -> 22.04 (#5031)
Browse files Browse the repository at this point in the history
ubuntu-18.04 was causing our builds to break, in a scheduled brownout.

All references to either ubuntu-latest or ubuntu-18.04 are now ubuntu-22.04.
(I figured it's better to control the version in all places.)

Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored Aug 22, 2022
1 parent 20a421b commit 1fca607
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
race-detector:
name: Go Race Detector
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -27,7 +27,7 @@ jobs:

native-fuzzer:
name: Go Fuzzer (native)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:

go-proxy-check:
name: Go mod check
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -79,7 +79,7 @@ jobs:

trivy-scan-image:
name: Trivy security scan image
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout code # needed for .trivyignore file
uses: actions/checkout@v3
Expand All @@ -100,7 +100,7 @@ jobs:

trivy-scan-repo:
name: Trivy security scan repo
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/post-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
generate:
name: Sync Generated Code and Docs
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
code-coverage:
name: Update Go Test Coverage
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: generate
steps:
- name: Check out code
Expand All @@ -80,7 +80,7 @@ jobs:

release-build:
name: Release Build (linux, windows)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: generate
steps:
- name: Check out code
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:

deploy-edge:
name: Push Edge Release
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: [release-build, release-build-darwin]
steps:
- name: Check out code
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:

deploy-wasm-builder:
name: Deploy WASM Builder
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: generate
steps:
- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
kick-netlify:
name: Kick Netlify
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Trigger Netlify Deploy
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/post-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
generate:
name: Generate Code
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -20,7 +20,7 @@ jobs:

release-build:
name: Release Build (linux, windows)
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: generate
steps:
- name: Check out code
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
build:
name: Push Latest Release
needs: [release-build, release-build-darwin]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
# up for parallel runners for faster PR feedback and a nicer UX.
generate:
name: Generate Code
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -32,15 +32,15 @@ jobs:
matrix:
include:
- os: linux
run: ubuntu-18.04
run: ubuntu-22.04
targets: ci-go-ci-build-linux ci-go-ci-build-linux-static
arch: amd64
- os: linux
run: ubuntu-18.04
run: ubuntu-22.04
targets: ci-go-ci-build-linux-static
arch: arm64
- os: windows
run: ubuntu-18.04
run: ubuntu-22.04
targets: ci-go-ci-build-windows
- os: darwin
run: macos-latest
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
matrix:
include:
- os: linux
run: ubuntu-18.04
run: ubuntu-22.04
- os: darwin
run: macos-latest
steps:
Expand All @@ -113,7 +113,7 @@ jobs:

go-perf:
name: Go Perf
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -124,7 +124,7 @@ jobs:

go-quick-fuzz:
name: Go quick fuzz
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -135,7 +135,7 @@ jobs:

go-lint:
name: Go Lint
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -146,7 +146,7 @@ jobs:

wasm:
name: WASM
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -157,7 +157,7 @@ jobs:

check-generated:
name: Check Generated
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -168,7 +168,7 @@ jobs:

wasm-go-sdk-e2e:
name: OPA Wasm SDK e2e
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -179,7 +179,7 @@ jobs:

race-detector:
name: Go Race Detector
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
Expand All @@ -189,7 +189,7 @@ jobs:

smoke-test-docker-images:
name: docker image smoke test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: go-build
steps:
- name: Check out code
Expand Down Expand Up @@ -223,9 +223,9 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-latest
- os: ubuntu-22.04
exec: opa_linux_amd64
- os: ubuntu-latest
- os: ubuntu-22.04
exec: opa_linux_amd64_static
wasm: disabled
- os: macos-latest
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-latest]
os: [ubuntu-22.04, macos-latest]
version: ["1.18", "1.17"]
steps:
- uses: actions/checkout@v3
Expand All @@ -279,7 +279,7 @@ jobs:
# Run PR metadata against Rego policies
rego-check-pr:
name: Rego PR checks
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit 1fca607

Please sign in to comment.