File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
staging :
12
+ strategy :
13
+ matrix :
14
+ ubuntu_version : ["focal", "noble"]
12
15
runs-on : ubuntu-latest
13
16
env :
14
17
GOOGLE_CREDENTIALS : ${{ secrets.GOOGLE_CREDENTIALS }}
18
+ UBUNTU_VERSION : ${{ matrix.ubuntu_version }}
15
19
steps :
16
20
- uses : actions/checkout@v4
17
21
- name : Run staging tests on GCE
Original file line number Diff line number Diff line change @@ -13,14 +13,15 @@ TOPLEVEL="$(git rev-parse --show-toplevel)"
13
13
export TOPLEVEL
14
14
GCE_CREDS_FILE=" ${TOPLEVEL} /.gce.creds"
15
15
export GCE_CREDS_FILE
16
+ export UBUNTU_VERSION=" ${UBUNTU_VERSION:- focal} "
16
17
export BUILD_NUM=" ${GITHUB_RUN_ID} -${GITHUB_RUN_ATTEMPT} "
17
18
export PROJECT_ID=" securedrop-ci"
18
19
export JOB_NAME=" sd-ci-nested"
19
20
export GCLOUD_MACHINE_TYPE=" c2-standard-8"
20
21
export GCLOUD_CONTAINER_VER
21
22
export CLOUDSDK_COMPUTE_ZONE=" us-west1-c"
22
23
export EPHEMERAL_DIRECTORY=" /tmp/gce-nested"
23
- export FULL_JOB_ID=" ${JOB_NAME} -${BUILD_NUM} "
24
+ export FULL_JOB_ID=" ${JOB_NAME} -${UBUNTU_VERSION} - ${ BUILD_NUM}"
24
25
export SSH_USER_NAME=sdci
25
26
export SSH_PRIVKEY=" ${EPHEMERAL_DIRECTORY} /gce"
26
27
export SSH_PUBKEY=" ${SSH_PRIVKEY} .pub"
Original file line number Diff line number Diff line change 12
12
set -u
13
13
set -o pipefail
14
14
15
- export BASE_OS=" ${BASE_OS:- focal} "
16
-
17
15
./devops/gce-nested/gce-start.sh
18
16
./devops/gce-nested/gce-runner.sh
19
17
./devops/gce-nested/gce-stop.sh
Original file line number Diff line number Diff line change 4
4
# for storage as artifacts on the build, so devs can review via web.
5
5
set -e
6
6
set -u
7
- BASE_OS =" ${BASE_OS :- focal} "
7
+ UBUNTU_VERSION =" ${UBUNTU_VERSION :- focal} "
8
8
9
9
10
10
TOPLEVEL=" $( git rev-parse --show-toplevel) "
@@ -56,6 +56,6 @@ copy_securedrop_repo
56
56
# so register a trap to ensure the fetch always runs.
57
57
trap fetch_junit_test_results EXIT
58
58
59
- ssh_gce " make build-debs-notest"
60
- ssh_gce " make build-debs-ossec-notest"
61
- ssh_gce " make staging"
59
+ ssh_gce " UBUNTU_VERSION= \" ${UBUNTU_VERSION} \" make build-debs-notest"
60
+ ssh_gce " UBUNTU_VERSION= \" ${UBUNTU_VERSION} \" make build-debs-ossec-notest"
61
+ ssh_gce " UBUNTU_VERSION= \" ${UBUNTU_VERSION} \" make staging"
You can’t perform that action at this time.
0 commit comments