Skip to content

Commit

Permalink
what
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Aug 15, 2024
1 parent 8cb8f0a commit 72c8d5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ jobs:
- name: Run staging tests on GCE
run: |
make ci-go
- name: Teardown (if needed)
if: always()
run: |
make ci-teardown || true
6 changes: 3 additions & 3 deletions devops/gce-nested/ci-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

# If these scripts are run on developer workstations, the CI env
# vars populated by CircleCI won't be present; make a sane default.
if [ -z "${CIRCLE_BUILD_NUM:-}" ]; then
export CIRCLE_BUILD_NUM="${USER}"
if [ -z "${GITHUB_RUN_ID:-}" ]; then
export GITHUB_RUN_ID="${USER}"
fi

# Set common vars we'll need throughout the CI scripts.
TOPLEVEL="$(git rev-parse --show-toplevel)"
export TOPLEVEL
GCE_CREDS_FILE="${TOPLEVEL}/.gce.creds"
export GCE_CREDS_FILE
export BUILD_NUM="${CIRCLE_BUILD_NUM}"
export BUILD_NUM="${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
export PROJECT_ID="securedrop-ci"
export JOB_NAME="sd-ci-nested"
export GCLOUD_MACHINE_TYPE="c2-standard-8"
Expand Down

0 comments on commit 72c8d5a

Please sign in to comment.