Skip to content

Commit

Permalink
Upgrade all actions to Ubuntu 24.04 and lock the version
Browse files Browse the repository at this point in the history
  • Loading branch information
n1koo committed May 3, 2024
1 parent a58a81d commit e14f604
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-images-from-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:

jobs:
base:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
strategy:
matrix:
service: ${{ fromJSON(needs.base.outputs.services) }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
fail-fast: false
matrix:
service: ${{ fromJSON(needs.base.outputs.services) }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd-manual-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
jobs:
manual-deploy-staging-e2e:
environment: staging
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: Checking out git repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-backup-data-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
jobs:
backup:
environment: production
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
BACKUP_HOST: farajaland-${{ github.event.inputs.backup_environment }}.opencrvs.org
SRC_HOST: farajaland.opencrvs.org
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on: [pull_request]

jobs:
setup:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

Expand All @@ -30,7 +30,7 @@ jobs:
test:
needs: setup
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:

security-scans:
needs: setup
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:

jobs:
base:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: trstringer/manual-approval@v1
with:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
strategy:
matrix:
service: ${{ fromJSON(needs.base.outputs.services) }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
fail-fast: false
matrix:
service: ${{ fromJSON(needs.base.outputs.services) }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reset-env-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
jobs:
clear:
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
ENV: ${{ github.event.inputs.environment }}
REPLICAS: ${{ github.event.inputs.replicas }}
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/trigger-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# OpenCRVS is also distributed under the terms of the Civil Registration
# & Healthcare Disclaimer located at http://opencrvs.org/license.
#
# Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
name: Trigger E2E

on:
Expand All @@ -7,7 +15,7 @@ on:
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/github-script@v6
with:
Expand Down

0 comments on commit e14f604

Please sign in to comment.