diff --git a/.gitea/workflows/build_push.yml b/.gitea/workflows/build_push.yml new file mode 100644 index 0000000..cd3af77 --- /dev/null +++ b/.gitea/workflows/build_push.yml @@ -0,0 +1,41 @@ +name: Build and Push Image +on: [ push ] + +jobs: + build: + name: Build and push image + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Create Kubeconfig + run: | + mkdir $HOME/.kube + echo "${{ secrets.KUBEC_CONFIG_BUILDX }}" > $HOME/.kube/config + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + driver: kubernetes + driver-opts: | + namespace=gitea-runner + qemu.install=true + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.aridgwayweb.com + username: armistace + password: ${{ secrets.REG_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: | + git.aridwayweb.com/armistace/blog:latest diff --git a/Dockerfile b/Dockerfile index 0055def..94d0155 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,5 @@ RUN pip install -r requirements.txt RUN apt-get update && apt-get install -y make RUN make html + ENTRYPOINT ["make", "serve-global"] diff --git a/src/content/building_the_cluster.md b/src/content/building_the_cluster.md new file mode 100644 index 0000000..7aa2bef --- /dev/null +++ b/src/content/building_the_cluster.md @@ -0,0 +1,10 @@ +Title: Building a 5 node Proxmox cluster! +Date: 2024-07-24 20:00 +Modified: 2024-07-24 20:00 +Category: Server Architecture +Tags: proxmox, kubernetes, hardware +Slug: proxmox-cluster-1 +Authors: Andrew Ridgway +Summary: I'm upgrading our hardware at home and this blog will chronicle the journey from a simple docker-compose single node zerver to 5 node proxmox cluster with a 3 node kubernetes cluster virtualised over the top + +So this one will likely be a long series of posts as I have a feeling this is going to be a bit of an on going saga but I thought with the bit of downtime I had I would start to chronicle the journey