From f5992b73449939736bea08b4412631165f1c9708 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 14 Aug 2024 19:32:14 +0000 Subject: [PATCH] Allow using LXD image mirror This change allows GARM tests to use a mirror for LXD images, allowing for faster image downloads. Signed-off-by: Gabriel Adrian Samfira --- .github/workflows/integration-tests.yml | 11 +++++++---- test/integration/config/garm-provider-lxd.toml | 2 +- test/integration/external_provider_test.go | 2 +- test/integration/organizations_test.go | 2 +- test/integration/repositories_test.go | 2 +- test/integration/scripts/setup-garm.sh | 3 ++- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index acc28800..f87b405f 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -18,6 +18,8 @@ jobs: - name: Setup LXD uses: canonical/setup-lxd@main + with: + channel: latest/stable - name: Install dependencies run: | @@ -42,9 +44,9 @@ jobs: echo "GARM_BASE_URL=$GARM_BASE_URL" >> $GITHUB_ENV - cat <> $GITHUB_ENV @@ -66,7 +67,7 @@ sudo chown -R $RUN_USER:$RUN_USER ${GARM_CONFIG_DIR} export LXD_PROVIDER_EXECUTABLE="$PROVIDER_BIN_DIR/garm-provider-lxd" export LXD_PROVIDER_CONFIG="${GARM_CONFIG_DIR}/garm-provider-lxd.toml" -sudo cp $CONFIG_DIR/garm-provider-lxd.toml $LXD_PROVIDER_CONFIG +cat $CONFIG_DIR/garm-provider-lxd.toml| envsubst | sudo tee $LXD_PROVIDER_CONFIG > /dev/null function clone_and_build_lxd_provider() { git clone https://github.com/cloudbase/garm-provider-lxd ~/garm-provider-lxd