tonga test

This commit is contained in:
2025-06-28 00:51:13 -05:00
parent 296891b237
commit 74814cc9c2
13 changed files with 52 additions and 93 deletions
+1 -25
View File
@@ -13,7 +13,7 @@ jobs:
REGISTRY_USERNAME: nicholas REGISTRY_USERNAME: nicholas
IMAGE_REGISTRY: git.uuard.com IMAGE_REGISTRY: git.uuard.com
IMAGE_NAME: nicholas/proving-ground IMAGE_NAME: nicholas/proving-ground
IMAGE_TAG: latest IMAGE_TAG: tonga
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: ⬇️ Checkout repo - name: ⬇️ Checkout repo
@@ -32,30 +32,6 @@ jobs:
- name: 🚀 Push Docker image - name: 🚀 Push Docker image
run: docker push $IMAGE_REGISTRY/$IMAGE_NAME:$IMAGE_TAG 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 - name: 🧹 Prune images
if: always() if: always()
run: docker image prune -f run: docker image prune -f
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 B

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 838 KiB

+27 -18
View File
@@ -1,31 +1,40 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="A page that greets the world."> <meta name="description" content="Tonga">
<link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<title>Hello, World!</title> <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> <style>
body { body {
font-family: Arial, sans-serif; margin: 0;
margin: 3rem; display: flex;
background-color: #f9f9f9; justify-content: center;
color: #333; align-items: center;
text-align: center; min-height: 100vh;
background-color: #1a1a1a;
color: #f0f0f0;
overflow: hidden;
} }
h1 {
color: #007acc; img {
} max-width: 100%;
p { max-height: 100vh;
font-size: 1.2rem; width: auto;
margin-top: 1rem; height: auto;
display: block;
} }
</style> </style>
</head> </head>
<body> <body>
<h1>Behold!</h1> <img src="tonga.webp" alt="Tonga">
<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>
</body> </body>
</html>
</html>
+21
View File
@@ -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"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

-22
View File
@@ -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
-16
View File
@@ -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
-12
View File
@@ -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