Skip to content

Commit

Permalink
chore(ci): use GH runner ubuntu-24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jan 19, 2025
1 parent b6fb95e commit 77dcb8c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
trivy:
name: Trivy Security Scan
if: ${{ ! github.event.pull_request.draft }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +40,7 @@ jobs:
tests:
name: Django Tests
if: ${{ ! github.event.pull_request.draft }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
defaults:
run:
working-directory: frontend
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
name: Analysis Results
if: always()
needs: [tests] # Restore trivy when/if it's working again
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: echo "At least one job has failed." && exit 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Set Variables
outputs:
pr: ${{ steps.pr.outputs.pr }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
# Get PR number for squash merges to main
Expand All @@ -38,7 +38,7 @@ jobs:


zap_scan:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [deploy-test, vars]
name: Penetration Tests
env:
Expand All @@ -57,7 +57,7 @@ jobs:
needs: [deploy-test, vars]
permissions:
packages: write
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
package: [frontend, rctool]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
builds:
name: Builds
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
packages: write
strategy:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
name: PR Results
needs: [builds, deploys]
if: always()
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: echo "At least one job has failed." && exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
results:
name: Validate Results
needs: [validate]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- run: echo "Workflow completed successfully!"
2 changes: 1 addition & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
needs: [deploys]
permissions:
packages: write
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
package: [frontend, rctool]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
env:
# https://tecadmin.net/getting-yesterdays-date-in-bash/
CUTOFF: "1 week ago"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Install CLI tools from OpenShift Mirror
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
done
zap_scan:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Penetration Tests
env:
URL: ${{ github.event.repository.name }}-test-frontend.apps.silver.devops.gov.bc.ca
Expand Down

0 comments on commit 77dcb8c

Please sign in to comment.