migrate to autodeploy
All checks were successful
Gitea Actions CI / Build and deploy (push) Successful in 26s

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-01-12 23:57:46 -05:00
parent 895241c9bb
commit 912ac171be
Signed by: xe
SSH Key Fingerprint: SHA256:7EWsWanxCI427bJ0t3CA6LyqXnkPajReCxkUhbpJULU
6 changed files with 74 additions and 3 deletions

View File

@ -21,4 +21,16 @@ jobs:
docker build -t git.xeserv.us/tulpamancy/tulpanomicon . docker build -t git.xeserv.us/tulpamancy/tulpanomicon .
- name: push image - name: push image
run: | run: |
docker push git.xeserv.us/tulpamancy/tulpanomicon docker push git.xeserv.us/tulpamancy/tulpanomicon
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_ALREST }}
KUBE_CONTEXT: alrest
with:
args: apply -k manifest
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_ALREST }}
KUBE_CONTEXT: alrest
with:
args: rollout restart -n default deployment/tulpanomicon

22
manifest/deployment.yaml Normal file
View File

@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: tulpanomicon
spec:
selector:
matchLabels:
app: tulpanomicon
template:
metadata:
labels:
app: tulpanomicon
spec:
containers:
- name: tulpanomicon
image: git.xeserv.us/tulpamancy/tulpanomicon:latest
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80

23
manifest/ingress.yaml Normal file
View File

@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tulpanomicon
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
ingressClassName: nginx
tls:
- hosts:
- tulpanomicon.guide
secretName: tulpanomicon-public-tls
rules:
- host: tulpanomicon.guide
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: tulpanomicon
port:
name: http

View File

@ -0,0 +1,4 @@
resources:
- deployment.yaml
- ingress.yaml
- service.yaml

11
manifest/service.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: tulpanomicon
spec:
selector:
app: tulpanomicon
ports:
- port: 80
targetPort: 80
name: http

View File

@ -1,7 +1,6 @@
## eBook Edition ## eBook Edition
The following is the eBook edition of the tulpanomicon. The following is the eBook edition of the tulpanomicon.
- [ePub (iBooks)](./tulpanomicon.epub) - [ePub (iBooks)](./tulpanomicon.epub)
- [Kindle](./tulpanomicon.mobi)
- [PDF](./tulpanomicon.pdf) - [PDF](./tulpanomicon.pdf)