forked from sebastian-colomar/dca-phpinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.61 KB
/
ci-rs.yaml
File metadata and controls
36 lines (36 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
################################################################################
# Copyright (C) 2024 Sebastian Francisco Colomar Bauza #
# SPDX-License-Identifier: GPL-2.0-only #
################################################################################
name: CI-rs #
on: #
push: #
branches: #
- docker #
jobs: #
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: minikube
run: |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo apt-get install ./minikube_latest_amd64.deb
- name: init
run: minikube start --driver=docker
- name: apply
run: kubectl apply -f etc/kubernetes/manifests/dca-phpinfo-rs.yaml
- name: test
run: |
set -x
while true
do
sleep 10
kubectl logs rs/dca-phpinfo 2>&1|grep "PHP.*started" && break
kubectl logs rs/dca-phpinfo 2>&1
kubectl get rs
kubectl get po
kubectl get all
done
################################################################################