tonga test
Deployment / deploy (push) Failing after 4s

This commit is contained in:
nicholas
2025-06-28 00:51:13 -05:00
parent 9f0e5b1a65
commit 336eeb2b89
13 changed files with 52 additions and 93 deletions
+1 -25
View File
@@ -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
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>
<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>
+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