Skip to content

Commit

Permalink
github: prevent accidental usage of images: in CI test jobs
Browse files Browse the repository at this point in the history
All tests should be done using officially supported images

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jul 4, 2024
1 parent 35b8ee1 commit 116789d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ jobs:
- name: ${{ matrix.test }} (${{ matrix.track }})
run: |
set -eux
# XXX: prevent accidental usage of `images:` in CI test jobs.
# All tests should be done using officially supported images.
echo '127.0.0.1 images.lxd.canonical.com' | sudo tee /etc/hosts
TEST_SCRIPT="$(echo ${{ matrix.test }} | cut -d " " -f 1)"
EXTRA_ARGS="$(echo ${{ matrix.test }} | cut -d " " -f 2- --only-delimited)"
if [ "${TEST_SCRIPT}" = "cluster" ]; then
Expand Down

0 comments on commit 116789d

Please sign in to comment.