Skip to content

Commit

Permalink
parameterise staging CI job for ubuntu version
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Nov 27, 2024
1 parent afdbb6d commit eccb535
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ on:

jobs:
staging:
strategy:
matrix:
ubuntu_version: ["focal", "noble"]
runs-on: ubuntu-latest
env:
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
UBUNTU_VERSION: ${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v4
- name: Run staging tests on GCE
Expand Down
2 changes: 1 addition & 1 deletion devops/gce-nested/ci-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -e
set -u
set -o pipefail

export BASE_OS="${BASE_OS:-focal}"
export UBUNTU_VERSION="${UBUNTU_VERSION:-focal}"

./devops/gce-nested/gce-start.sh
./devops/gce-nested/gce-runner.sh
Expand Down
8 changes: 4 additions & 4 deletions devops/gce-nested/gce-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# for storage as artifacts on the build, so devs can review via web.
set -e
set -u
BASE_OS="${BASE_OS:-focal}"
UBUNTU_VERSION="${UBUNTU_VERSION:-focal}"


TOPLEVEL="$(git rev-parse --show-toplevel)"
Expand Down Expand Up @@ -56,6 +56,6 @@ copy_securedrop_repo
# so register a trap to ensure the fetch always runs.
trap fetch_junit_test_results EXIT

ssh_gce "make build-debs-notest"
ssh_gce "make build-debs-ossec-notest"
ssh_gce "make staging"
ssh_gce "UBUNTU_VERSION=\"${UBUNTU_VERSION}\" make build-debs-notest"
ssh_gce "UBUNTU_VERSION=\"${UBUNTU_VERSION}\" make build-debs-ossec-notest"
ssh_gce "UBUNTU_VERSION=\"${UBUNTU_VERSION}\" make staging"

0 comments on commit eccb535

Please sign in to comment.