Skip to content

Commit e0c6909

Browse files
committed
Include GA for build and deploy with Minikube
Resolves: keylime#9 Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 68d5912 commit e0c6909

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.github/workflows/deploy.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: "Build and deploy"
3+
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Install dependencies (kubectl, helm, clamscan, make)
15+
run: sh .github/workflows/scripts/install_dependencies.sh
16+
17+
- name: Build
18+
run: helm build
19+
20+
- name: Minikube Installation
21+
id: minikube
22+
uses: medyagh/setup-minikube@latest
23+
24+
- name: Status
25+
run: minikube status
26+
27+
- name: Deploy
28+
run: helm deploy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh -e
2+
#
3+
# Copyright 2023 The Keylime Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
COMMON="helm"
7+
COMMAND_CHECK="helm docker"
8+
9+
case "${DISTRO}" in
10+
debian:*|ubuntu:*)
11+
export DEBIAN_FRONTEND=noninteractive
12+
apt clean
13+
apt update
14+
# We get some errors once in a while, so let's try a few times.
15+
for i in 1 2 3; do
16+
apt -y install ${COMMON} ${DEBIAN_UBUNTU} && break
17+
sleep ${i}
18+
done
19+
;;
20+
esac
21+
22+
echo "================= SYSTEM ================="
23+
cat /etc/os-release
24+
uname -a
25+
echo "=========================================="
26+
27+
for command in ${COMMAND_CHECK}; do
28+
command -v "${command}"
29+
done

0 commit comments

Comments
 (0)