Skip to content

Commit

Permalink
chore(ci) combine key steps in the lxd-ui workflow
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Nov 15, 2024
1 parent 8302d6b commit 8b4b9b8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ jobs:
- name: Install Dotrun
run: sudo pip3 install dotrun

- name: Generate keys
- name: Generate keys for the ui to use
run: |
. test/includes/certificates.sh
export LXD_CONF=lxd-ui/keys
Expand All @@ -644,6 +644,8 @@ jobs:
cp lxd-ui/keys/lxd-ui.key lxd-ui/keys/lxd-ui.crt.key
sudo chmod -R 0666 lxd-ui/keys
sudo chmod 0777 lxd-ui/keys
export PATH="/home/runner/go/bin:$PATH"
sudo -E LXD_DIR=/var/lib/lxd lxc config trust add lxd-ui/keys/lxd-ui.crt
- name: Install LXD-UI dependencies
run: |
Expand All @@ -663,13 +665,6 @@ jobs:
dotrun &
curl --head --fail --retry-delay 2 --retry 100 --retry-connrefused --insecure https://localhost:${{ env.PORT }}
- name: Allow LXD-UI keys
shell: bash
run: |
set -eux
export PATH="/home/runner/go/bin:$PATH"
sudo -E LXD_DIR=/var/lib/lxd lxc config trust add lxd-ui/keys/lxd-ui.crt
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down

0 comments on commit 8b4b9b8

Please sign in to comment.