Skip to content

Commit

Permalink
github: Add static remote instead of setting env variables
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Aug 23, 2024
1 parent 3d2b2cf commit c8590b6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit c8590b6

Please sign in to comment.