Skip to content

Commit

Permalink
Easy2Use builds & test via GitHub Actions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
pef-ericsson committed Nov 24, 2023
1 parent f3d831c commit 4509f9a
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
pull_request:
branches:
- master

env:
NAMESPACE: ci-eiffel
BUNDLE: Eiffel
READY_POD_TIMEOUT: 120s

jobs:
build:
Expand All @@ -16,19 +21,44 @@ jobs:

- name: Kubernetes Version
run: |
: # Get kubectl version
kubectl version
- name: Install Easy2Use on cluster
id: installation
run: |
kubectl create ns ci-eiffel
./easy2use start -t Kubernetes -d cluster.local -e ./bundles -n ci-eiffel Eiffel -y
sleep 10
: # Create the NAMESPACE
kubectl create ns $NAMESPACE
: # Install the BUNDLE via easy2use
./easy2use start -t Kubernetes -d cluster.local -e ./bundles -n $NAMESPACE $BUNDLE -y
: # Wait until all pods are running
kubectl wait pod \
--all \
--for=condition=Ready \
--field-selector=status.phase=Running \
--selector job-name!=mongodb-seed \
--namespace=$NAMESPACE \
--timeout=$READY_POD_TIMEOUT
- name: List the Eiffel pods
: # Check that the mongodb seed job is completed
kubectl wait \
--for=condition=complete \
--namespace=$NAMESPACE \
job/mongodb-seed
- name: List the Eiffel pods and ingresses
run: |
kubectl get pods -n ci-eiffel
kubectl get pods -n $NAMESPACE
kubectl get ingress -n $NAMESPACE
- name: Remove Easy2Use from cluster
id: removal
if: always()
run: |
./easy2use remove -t Kubernetes -d cluster.local -e ./bundles -n ci-eiffel Eiffel -y
kubectl delete ns ci-eiffel
: # Remove the BUNDLE from the cluster via easy2use
./easy2use remove -t Kubernetes -d cluster.local -e ./bundles -n $NAMESPACE $BUNDLE -y
: # Delete the NAMESPACE
kubectl delete ns $NAMESPACE

0 comments on commit 4509f9a

Please sign in to comment.