Skip to content

Commit

Permalink
Include GA for build and deploy with Minikube
Browse files Browse the repository at this point in the history
Resolves: #9

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi committed Oct 5, 2023
1 parent 68d5912 commit e0c6909
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: "Build and deploy"

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies (kubectl, helm, clamscan, make)
run: sh .github/workflows/scripts/install_dependencies.sh

- name: Build
run: helm build

- name: Minikube Installation
id: minikube
uses: medyagh/setup-minikube@latest

- name: Status
run: minikube status

- name: Deploy
run: helm deploy
29 changes: 29 additions & 0 deletions .github/workflows/scripts/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh -e
#
# Copyright 2023 The Keylime Authors
# SPDX-License-Identifier: Apache-2.0
#
COMMON="helm"
COMMAND_CHECK="helm docker"

case "${DISTRO}" in
debian:*|ubuntu:*)
export DEBIAN_FRONTEND=noninteractive
apt clean
apt update
# We get some errors once in a while, so let's try a few times.
for i in 1 2 3; do
apt -y install ${COMMON} ${DEBIAN_UBUNTU} && break
sleep ${i}
done
;;
esac

echo "================= SYSTEM ================="
cat /etc/os-release
uname -a
echo "=========================================="

for command in ${COMMAND_CHECK}; do
command -v "${command}"
done

0 comments on commit e0c6909

Please sign in to comment.