tonga test
@@ -13,7 +13,7 @@ jobs:
|
||||
REGISTRY_USERNAME: nicholas
|
||||
IMAGE_REGISTRY: git.uuard.com
|
||||
IMAGE_NAME: nicholas/proving-ground
|
||||
IMAGE_TAG: latest
|
||||
IMAGE_TAG: tonga
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⬇️ Checkout repo
|
||||
@@ -32,30 +32,6 @@ jobs:
|
||||
- name: 🚀 Push Docker image
|
||||
run: docker push $IMAGE_REGISTRY/$IMAGE_NAME:$IMAGE_TAG
|
||||
|
||||
- name: 🛠️ Setup kubectl
|
||||
uses: azure/setup-kubectl@v4
|
||||
with:
|
||||
version: 'latest'
|
||||
|
||||
- name: 🔑 Configure Kubeconfig
|
||||
run: |
|
||||
echo "${{ secrets.KUBECONFIG_DATA }}" | base64 -d > kubeconfig.yml
|
||||
|
||||
# - name: 🧪 Test access
|
||||
# env:
|
||||
# KUBECONFIG: kubeconfig.yml
|
||||
# run: kubectl get nodes
|
||||
|
||||
- name: 🚀 Deploy to k3s
|
||||
env:
|
||||
KUBECONFIG: kubeconfig.yml
|
||||
run: |
|
||||
kubectl apply -f k8s/deployment.yml
|
||||
kubectl apply -f k8s/service.yml
|
||||
kubectl apply -f k8s/ingress.yml
|
||||
kubectl rollout restart deployment proving-ground
|
||||
kubectl rollout status deployment proving-ground
|
||||
|
||||
- name: 🧹 Prune images
|
||||
if: always()
|
||||
run: docker image prune -f
|
||||
|
||||
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 136 B After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 838 KiB |
@@ -1,31 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="A page that greets the world.">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
||||
|
||||
<title>Hello, World!</title>
|
||||
<meta name="description" content="Tonga">
|
||||
<link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
|
||||
<link rel="manifest" href="site.webmanifest" />
|
||||
<title>Tonga</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 3rem;
|
||||
background-color: #f9f9f9;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
background-color: #1a1a1a;
|
||||
color: #f0f0f0;
|
||||
overflow: hidden;
|
||||
}
|
||||
h1 {
|
||||
color: #007acc;
|
||||
}
|
||||
p {
|
||||
font-size: 1.2rem;
|
||||
margin-top: 1rem;
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100vh;
|
||||
width: auto;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Behold!</h1>
|
||||
<p>The Cosmos is all that is or was or ever will be. Our feeblest contemplations of the Cosmos stir us — there is a tingling in the spine, a catch in the voice, a faint sensation, as if a distant memory, of falling from a height. We know we are approaching the greatest of mysteries. </p>
|
||||
<img src="tonga.webp" alt="Tonga">
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "Tonga",
|
||||
"short_name": "Tonga",
|
||||
"icons": [
|
||||
{
|
||||
"src": "web-app-manifest-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "web-app-manifest-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
|
After Width: | Height: | Size: 5.1 MiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 356 KiB |
@@ -1,22 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: proving-ground
|
||||
labels:
|
||||
app: proving-ground-static-site
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: proving-ground-static-site
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: proving-ground-static-site
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: git.uuard.com/nicholas/proving-ground:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
@@ -1,16 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: proving-ground-static-site-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: server
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: proving-ground-static-site-service
|
||||
port:
|
||||
number: 80
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: proving-ground-static-site-service
|
||||
spec:
|
||||
selector:
|
||||
app: proving-ground-static-site
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
type: LoadBalancer
|
||||