From 9657cd92ceb9709d2c2d5d758494303e425c57dc Mon Sep 17 00:00:00 2001 From: Din Music Date: Fri, 23 Aug 2024 15:38:45 +0000 Subject: [PATCH] github: Add static remote instead of setting env variables Signed-off-by: Din Music --- .github/workflows/test.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9bd6aaee..7e8b8a47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,10 +33,6 @@ jobs: env: TF_ACC: "1" GO111MODULE: "on" - LXD_REMOTE: localhost - LXD_SCHEME: https - LXD_ADDR: localhost - LXD_PORT: 8443 LXD_GENERATE_CLIENT_CERTS: "true" LXD_ACCEPT_SERVER_CERTIFICATE: "true" @@ -51,7 +47,7 @@ jobs: run: | sudo snap refresh lxd --channel=${{ matrix.channel }} sudo lxd waitready --timeout 60 - sudo lxd init --auto --network-port="$LXD_PORT" --network-address="$LXD_ADDR" + sudo lxd init --auto --network-port=8443 --network-address=localhost sudo chmod 777 /var/snap/lxd/common/lxd/unix.socket # 5.0/* currently use core20 which ships with a buggy lvm2 package so @@ -64,8 +60,8 @@ jobs: sudo snap restart --reload lxd fi - # Generate trust token. - echo "LXD_TOKEN=$(lxc config trust add --name lxd-terraform-provider --quiet)" >> $GITHUB_ENV + # Add HTTPS remote. + lxc remote add localhost "$(lxc config trust add --name lxd-terraform-provider --quiet)" - name: Configure OVN run: |