Skip to content

Commit

Permalink
storing USE_ALTERNATIVE_BACKEND in gce bucket instead of using a var
Browse files Browse the repository at this point in the history
This is needed because the vars are not shared to forked environments
  • Loading branch information
sergiocazzolato committed Feb 26, 2025
1 parent 3628cf7 commit 603d098
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/spread-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ jobs:
- name: Setup run tests variable
if: "!contains(github.event.pull_request.labels.*.name, 'Skip spread')"
env:
USE_ALTERNATIVE_BACKEND: ${{ vars.USE_ALTERNATIVE_BACKEND }}
run: |
get_new_tasks() {
local prefix=$1
Expand All @@ -162,6 +160,7 @@ jobs:
# Determine if the alternative backend has to be used for the current group
# Alternative backends usage depends on the value stored in the var USE_ALTERNATIVE_BACKEND,
# where it is defined the backend to use when images are ready in both google and openstack.
USE_ALTERNATIVE_BACKEND="$(curl -s https://storage.googleapis.com/snapd-spread-tests/snapd-tests/ci/USE_ALTERNATIVE_BACKEND)"
SPREAD_BACKEND="${{ inputs.backend }}"
if [ -n "${{ inputs.alternative-backend }}" ] && grep "${{ inputs.group }}: true" <<< "$USE_ALTERNATIVE_BACKEND" ; then
SPREAD_BACKEND="${{ inputs.alternative-backend }}"
Expand Down

0 comments on commit 603d098

Please sign in to comment.