File tree 6 files changed +13
-9
lines changed
6 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 18
18
19
19
- name : Setup LXD
20
20
uses : canonical/setup-lxd@main
21
+ with :
22
+ channel : latest/stable
21
23
22
24
- name : Install dependencies
23
25
run : |
42
44
43
45
echo "GARM_BASE_URL=$GARM_BASE_URL" >> $GITHUB_ENV
44
46
45
- cat <<EOF | sudo tee /etc/systemd/system/localshow -tunnel.service
47
+ cat <<EOF | sudo tee /etc/systemd/system/garm -tunnel.service
46
48
[Unit]
47
- Description=Localshow tunnel
49
+ Description=GARM tunnel
48
50
After=network.target
49
51
50
52
[Service]
57
59
EOF
58
60
59
61
sudo systemctl daemon-reload
60
- sudo systemctl enable localshow -tunnel
61
- sudo systemctl start localshow -tunnel
62
+ sudo systemctl enable garm -tunnel
63
+ sudo systemctl start garm -tunnel
62
64
63
65
- name : Generate secrets
64
66
run : |
90
92
CREDENTIALS_NAME : test-garm-creds
91
93
WORKFLOW_FILE_NAME : test.yml
92
94
GH_TOKEN : ${{ secrets.GH_OAUTH_TOKEN }}
95
+ LXD_REMOTE_SERVER : ${{ secrets.LXD_REMOTE_SERVER }}
93
96
94
97
- name : Show GARM logs
95
98
if : always()
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ secure_boot = false
5
5
project_name = " default"
6
6
[image_remotes ]
7
7
[image_remotes .ubuntu ]
8
- addr = " https://cloud-images.ubuntu.com/releases "
8
+ addr = " ${LXD_REMOTE_SERVER} "
9
9
public = true
10
10
protocol = " simplestreams"
11
11
skip_verify = false
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func (suite *GarmSuite) TestExternalProvider() {
22
22
MaxRunners : 2 ,
23
23
MinIdleRunners : 0 ,
24
24
Flavor : "default" ,
25
- Image : "ubuntu:22 .04" ,
25
+ Image : "ubuntu:24 .04" ,
26
26
OSType : commonParams .Linux ,
27
27
OSArch : commonParams .Amd64 ,
28
28
ProviderName : "test_external" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func (suite *GarmSuite) TestOrganizations() {
29
29
MaxRunners : 2 ,
30
30
MinIdleRunners : 0 ,
31
31
Flavor : "default" ,
32
- Image : "ubuntu:22 .04" ,
32
+ Image : "ubuntu:24 .04" ,
33
33
OSType : commonParams .Linux ,
34
34
OSArch : commonParams .Amd64 ,
35
35
ProviderName : "lxd_local" ,
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func (suite *GarmSuite) TestRepositories() {
57
57
MaxRunners : 2 ,
58
58
MinIdleRunners : 0 ,
59
59
Flavor : "default" ,
60
- Image : "ubuntu:22 .04" ,
60
+ Image : "ubuntu:24 .04" ,
61
61
OSType : commonParams .Linux ,
62
62
OSArch : commonParams .Amd64 ,
63
63
ProviderName : "lxd_local" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export RUN_USER=${RUN_USER:-$USER}
14
14
export GARM_PORT=${GARM_PORT:- " 9997" }
15
15
export GARM_SERVICE_NAME=${GARM_SERVICE_NAME:- " garm" }
16
16
export GARM_CONFIG_FILE=${GARM_CONFIG_FILE:- " ${GARM_CONFIG_DIR} /config.toml" }
17
+ export LXD_REMOTE_SERVER=${LXD_REMOTE_SERVER:- " https://cloud-images.ubuntu.com/releases" }
17
18
18
19
if [ -f " $GITHUB_ENV " ]; then
19
20
echo " export GARM_CONFIG_DIR=${GARM_CONFIG_DIR} " >> $GITHUB_ENV
@@ -66,7 +67,7 @@ sudo chown -R $RUN_USER:$RUN_USER ${GARM_CONFIG_DIR}
66
67
67
68
export LXD_PROVIDER_EXECUTABLE=" $PROVIDER_BIN_DIR /garm-provider-lxd"
68
69
export LXD_PROVIDER_CONFIG=" ${GARM_CONFIG_DIR} /garm-provider-lxd.toml"
69
- sudo cp $CONFIG_DIR /garm-provider-lxd.toml $LXD_PROVIDER_CONFIG
70
+ cat $CONFIG_DIR /garm-provider-lxd.toml| envsubst | sudo tee $LXD_PROVIDER_CONFIG > /dev/null
70
71
71
72
function clone_and_build_lxd_provider() {
72
73
git clone https://github.com/cloudbase/garm-provider-lxd ~ /garm-provider-lxd
You can’t perform that action at this time.
0 commit comments