Compare commits

..

12 Commits

Author SHA1 Message Date
477875253b Merge branch 'main' of https://git.scottyah.com/public/scottyah-blog
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m37s
2026-03-09 19:59:25 -07:00
1b5fe62148 added post CICD 2026-03-09 19:58:59 -07:00
Scott Hatlen
8e343ccebe Fix buildah push flags
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m56s
2026-03-09 19:53:33 -07:00
Scott Hatlen
0ec58ed1dd Debug secrets and add tls-verify=false for Harbor
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 42s
2026-03-09 19:52:10 -07:00
Scott Hatlen
e66132a184 Use buildah --isolation chroot for container builds
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 40s
2026-03-09 19:32:45 -07:00
Scott Hatlen
7e6319b7bb Use git clone instead of actions/checkout for buildah container
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1s
2026-03-09 19:31:07 -07:00
Scott Hatlen
318fc88319 Add manual workflow dispatch trigger
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 44s
2026-03-09 19:24:59 -07:00
Scott Hatlen
14d4c82005 Trigger CI test
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
2026-03-09 19:19:32 -07:00
Scott Hatlen
9ed43773bc Add Gitea Actions workflow for build and deploy
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Uses buildah to build/push to Harbor, then kubectl apply for deployment.
Replaces the old Woodpecker CI pipeline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 19:11:06 -07:00
fa677aed31 added post urban-attic
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-02-13 13:52:19 -08:00
Scott Hatlen
2559036c90 Merge remote branch: add shiftandsharpen post
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2026-02-13 13:37:48 -08:00
Scott Hatlen
f4732cd884 Move scottyah.com to dedicated homepage, add scotthatlen.com TLS
Remove scottyah.com from blog ingress rules and TLS hosts.
Add dedicated TLS entry for scotthatlen.com.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 23:55:55 -08:00
4 changed files with 64 additions and 11 deletions

View File

@@ -0,0 +1,42 @@
name: Build and Deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
image: quay.io/buildah/stable
steps:
- name: Checkout
run: |
git clone --depth 1 --branch "${{ github.ref_name }}" "${{ github.server_url }}/${{ github.repository }}.git" .
git checkout "${{ github.sha }}"
- name: Build image
run: |
IMAGE=harbor.scottyah.com/scottyah/blog
buildah --isolation chroot bud -t $IMAGE:${{ github.sha }} -t $IMAGE:latest .
- name: Push image
run: |
IMAGE=harbor.scottyah.com/scottyah/blog
buildah login --tls-verify=false -u "$HARBOR_USERNAME" -p "$HARBOR_PASSWORD" harbor.scottyah.com
buildah push --tls-verify=false $IMAGE:${{ github.sha }}
buildah push --tls-verify=false $IMAGE:latest
env:
HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }}
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
- name: Deploy
run: |
curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG_DATA }}" | base64 -d > ~/.kube/config
sed -i "s|harbor.scottyah.com/scottyah/blog:latest|harbor.scottyah.com/scottyah/blog:${{ github.sha }}|" k8s.yaml
./kubectl apply -f k8s.yaml
./kubectl rollout status deployment/blog-dep -n blog --timeout=120s

View File

@@ -0,0 +1,7 @@
---
title: "CICD"
date: 2026-03-09T19:57:00-07:00
draft: false
---
Finally got some CICD working- woodpecker was useless, but now gitea has Actions. With some configuration, I can now push to some repos and the internet gets the updates. My days of ssh-ing (via tailscale) and running ship.sh scripts might be over. One more script replaced by lots of yaml, hope, and prayers.

View File

@@ -0,0 +1,11 @@
---
title: "Urban Attic"
date: 2026-02-13T13:48:46-08:00
draft: false
---
Just an update post on a project I'm really excited about- a whole inventory management system for a small business that tracks totes and storage. I'll put up a demo version of it at some point so anyone can play around with it, but this is the most official one- I've even signed a contract for revenue sharing.
It's gotten pretty complex, with Customer management, Tote management, upcoming deliveries and requests in the admin page, a dashboard for customers to manage their totes, keep records of contents (encrypted), update payments, addresses, etc. and even a scheduling system.
Stay tuned!

View File

@@ -49,19 +49,12 @@ spec:
ingressClassName: traefik
tls:
- hosts:
- scottyah.com
- blog.scottyah.com
secretName: scottyah-tls
- hosts:
- scotthatlen.com
secretName: scotthatlen-tls
rules:
- host: scottyah.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: blog-svc
port:
number: 80
- host: blog.scottyah.com
http:
paths: