From 020dc3ec08b00c3699cda69ae689edd4a6e769bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Czoma?= Date: Tue, 9 Jul 2024 05:55:15 -0400 Subject: [PATCH] Activate testing with private provider --- .github/workflows/module-test-pipeline.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/module-test-pipeline.yml b/.github/workflows/module-test-pipeline.yml index 4d06ca2..2bbea59 100644 --- a/.github/workflows/module-test-pipeline.yml +++ b/.github/workflows/module-test-pipeline.yml @@ -23,14 +23,14 @@ jobs: --env system_scaling_maxconnectioncount="1000" --mount type=bind,source=$HOME/solace,destination=/var/lib/solace,ro=false solace/solace-pubsub-standard:latest while ! curl -s localhost:8080 | grep aurelia ; do sleep 1 ; done - # - name: Setup if private provider is required - # run: | - # export PRIVATE_PROVIDER_VERSION="1.0.0-rc.3" - # if [ -n "$PRIVATE_PROVIDER_VERSION" ]; then - # echo "Using private provider version $PRIVATE_PROVIDER_VERSION" - # grep -rl 'source = "' . | xargs sed -i 's@source = ".*$@source = "app.terraform.io/SolaceDev/solacebrokerappliance"@g' - # grep -rl 'version = "' . | xargs sed -i "s@ version = \".*\$@ version = \"${PRIVATE_PROVIDER_VERSION}\"@g" - # fi + - name: Setup if private provider is required + run: | + export PRIVATE_PROVIDER_VERSION="1.0.0-rc.3" + if [ -n "$PRIVATE_PROVIDER_VERSION" ]; then + echo "Using private provider version $PRIVATE_PROVIDER_VERSION" + grep -rl 'source = "' . | xargs sed -i 's@source = ".*$@source = "app.terraform.io/SolaceDev/solacebrokerappliance"@g' + grep -rl 'version = "' . | xargs sed -i "s@ version = \".*\$@ version = \"${PRIVATE_PROVIDER_VERSION}\"@g" + fi - name: Test module from template on test broker run: | @@ -121,4 +121,4 @@ jobs: CURRENT_BRANCH=${GITHUB_REF_NAME} gh pr create -B ${CURRENT_BRANCH} -H "GeneratedSourceUpdates-${CURRENT_BRANCH}" --title "Merge updates into ${CURRENT_BRANCH}" --body 'Created by Github action' echo Review and approve PR before push can continue - exit 1 // force actions stop here \ No newline at end of file + exit 1 // force actions stop here