Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eac2f648c0 | ||
|
|
79d53d3462 | ||
|
|
6dd6e92d93 | ||
|
|
3db9f63246 | ||
|
|
6552ba503b | ||
|
|
202c787f19 | ||
|
|
61324ff499 | ||
|
|
859c40c55c | ||
|
|
92dd043b35 | ||
|
|
761265a467 |
@@ -43,3 +43,19 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: |
|
tags: |
|
||||||
git.aridgwayweb.com/armistace/blog:latest
|
git.aridgwayweb.com/armistace/blog:latest
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
echo "Installing Kubectl"
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y apt-transport-https ca-certificates curl gnupg
|
||||||
|
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.33/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||||
|
chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||||
|
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.33/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list
|
||||||
|
chmod 644 /etc/apt/sources.list.d/kubernetes.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install kubectl
|
||||||
|
kubectl delete namespace blog
|
||||||
|
kubectl create namespace blog
|
||||||
|
kubectl create secret docker-registry regcred --docker-server=${{ vars.DOCKER_SERVER }} --docker-username=${{ vars.DOCKER_USERNAME }} --docker-password='${{ secrets.DOCKER_PASSWORD }}' --docker-email=${{ vars.DOCKER_EMAIL }} --namespace=blog
|
||||||
|
kubectl apply -f kube/blog_pod.yaml && kubectl apply -f kube/blog_deployment.yaml && kubectl apply -f kube/blog_service.yaml
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: blog-deployment
|
||||||
|
labels:
|
||||||
|
app: blog
|
||||||
|
namespace: blog
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: blog
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: blog
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: blog
|
||||||
|
image: git.aridgwayweb.com/armistace/blog:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: regcred
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: blog
|
||||||
|
namespace: blog
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: blog
|
||||||
|
image: git.aridgwayweb.com/armistace/blog:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: regcred
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: blog-service
|
||||||
|
namespace: blog
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: blog
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 8000
|
||||||
|
nodePort: 30009
|
||||||
@@ -1,5 +1,16 @@
|
|||||||
|
Title: When to use AI
|
||||||
|
Date: 2025-06-05 20:00
|
||||||
|
Modified: 2025-06-06 08:00
|
||||||
|
Category: AI, Data
|
||||||
|
Tags: ai, python
|
||||||
|
Slug: when-to-use-ai
|
||||||
|
Authors: Andrew Ridgway
|
||||||
|
Summary: Should we be using AI for ALL THE THINGS!?
|
||||||
|
|
||||||
|
|
||||||
# Human Introduction
|
# Human Introduction
|
||||||
Well.. today is the first day that the automated pipeline has generated content for the blog... still a bit of work to do including
|
Well.. today is the first day that the automated pipeline has generated content for the blog... still a bit of work to do including
|
||||||
|
|
||||||
1. establishing a permanent vectordb solution (chromadb? pg_vector?)
|
1. establishing a permanent vectordb solution (chromadb? pg_vector?)
|
||||||
2. Notification to Matrix that something has happened
|
2. Notification to Matrix that something has happened
|
||||||
3. Updating Trilium so that the note is marked as blog_written=true
|
3. Updating Trilium so that the note is marked as blog_written=true
|
||||||
|
|||||||
Reference in New Issue
Block a user