test commit #3
Workflow file for this run
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
name: CI | |
on: | |
- pull_request | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
name: build example and deploy to minikube | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start minikube | |
uses: medyagh/setup-minikube@master | |
- name: Try the cluster ! | |
run: kubectl get pods -A | |
- name: Build image | |
run: | | |
export SHELL=/bin/bash | |
eval $(minikube -p minikube docker-env) | |
docker build -f ./3.5_app_development/ex-5-java/Dockerfile.maven -t ghcr.io/takara9/ex5:1.1 3.5_app_development/ex-5-java | |
echo -n "verifying images:" | |
docker images | |
- name: Deploy to minikube | |
run: | |
kubectl apply -f ./3.5_app_development/ex-5-java/deployment.yaml | |
- name: Test service URLs | |
run: | | |
minikube service list | |
minikube service example --url | |
echo "------------------opening the service------------------" | |
curl $(minikube service example --url) | |