-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include GA for build and deploy with Minikube
Resolves: #9 Signed-off-by: Sergio Arroutbi <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |