Skip to content

Commit 5ccd722

Browse files
fix: install snap instead of assuming it is installed
1 parent 598b35a commit 5ccd722

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/jobs/microk8s_install.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ steps:
6767
- run:
6868
name: Install microk8s and addon dependencies
6969
command: |
70+
if ! which snap > /dev/null; then
71+
sudo apt-get install snapd; \
72+
fi
7073
sudo snap refresh
7174
sudo apt update && sudo apt install nfs-common -y
7275

0 commit comments

Comments
 (0)