Skip to content

Commit

Permalink
Merge pull request #158 from simondeziel/fedora-40
Browse files Browse the repository at this point in the history
github/workflow: Add Fedora 40
  • Loading branch information
tomponline authored Apr 23, 2024
2 parents bff86f4 + f7c4c5d commit 1f6e572
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions .github/actions/image-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,8 @@ runs:
- name: Setup LXD ${{ inputs.lxd-channel }}
shell: bash
run: |
sudo snap refresh lxd --channel=${{ inputs.lxd-channel }}
sudo snap refresh lxd --channel=${{ inputs.lxd-channel }} || sudo snap install lxd --channel=${{ inputs.lxd-channel }}
sudo snap set lxd daemon.group=adm
sudo lxd waitready --timeout 60
sudo chmod 777 /var/snap/lxd/common/lxd/unix.socket
sudo lxd init --auto
lxc version
- name: Print supported LXD drivers
shell: bash
run: |
lxc query /1.0 | jq '.environment.driver'
sudo lxc query /1.0 | jq '.environment.driver'
1 change: 1 addition & 0 deletions .github/workflows/image-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
release:
- 38
- 39
- 40
variant:
- default
- cloud
Expand Down
5 changes: 2 additions & 3 deletions bin/test-image
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eu

# Source helper functions.
. $(realpath $(dirname "$0")/helpers)
. "$(realpath "$(dirname "$0")/helpers")"

# Check input arguments.
if [ "${1:-}" = "" ] || [ "${2:-}" = "" ] || [ "${3:-}" = "" ] || [ "${4:-}" = "" ] || [ "${5:-}" = "" ]; then
Expand All @@ -17,7 +17,7 @@ VARIANT=${4}
TARGET=${5}

# Ensure lxc is installed.
if ! which lxc >/dev/null; then
if ! command -v lxc >/dev/null; then
echo "==> FAIL: Binary 'lxc' not found!"
exit 1
fi
Expand Down Expand Up @@ -64,7 +64,6 @@ cleanup() {
FAIL=1
trap cleanup EXIT HUP INT TERM

FINGERPRINT=$(cat "${TEST_DIR}/meta" "${TEST_DIR}/root" | sha256sum | cut -d' ' -f1)
lxc image import "${TEST_DIR}/meta" "${TEST_DIR}/root" --alias "${TEST_IMAGE}"

echo "==> Creating the instances"
Expand Down

0 comments on commit 1f6e572

Please sign in to comment.