Compare commits

..
Author SHA1 Message Date
armistace 3db9f63246 stray w 2025-06-06 09:59:47 +10:00
armistace 202c787f19 fix push settings 2025-06-06 09:52:38 +10:00
armistace 859c40c55c cleanup of kube stuff 2025-06-06 09:31:43 +10:00
armistace 92dd043b35 wrap the password 2025-06-06 09:29:24 +10:00
armistace 761265a467 kube pipeline manual step and kubectl yaml 2025-06-06 09:25:31 +10:00
armistace da1bfd4779 Change workflow push to master only
Build and Push Image / Build and push image (push) Successful in 10m7s
2025-06-04 20:10:41 +10:00
5 changed files with 103 additions and 111 deletions
+53 -34
View File
@@ -1,42 +1,61 @@
name: Build and Push Image
on: [ push ]
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
if: gitea.ref == 'refs/heads/master'
build:
name: Build and push image
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
if: gitea.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create Kubeconfig
run: |
mkdir $HOME/.kube
echo "${{ secrets.KUBEC_CONFIG_BUILDX }}" > $HOME/.kube/config
- 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: 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: 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.aridgwayweb.com/armistace/blog:latest
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
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
+24
View File
@@ -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
+13
View File
@@ -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
+13
View File
@@ -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,77 +0,0 @@
Okay, here's a markdown-formatted response based on your prompt, aiming for a conversational and thoughtful tone, incorporating your points and expanding on them. I've tried to maintain the "conversational" feel you requested.
---
## Australia & AI: Let's Do This Right (Without Messing Things Up)
Right, so we're all hearing the buzz about AI. The government wants us to be a tech powerhouse, boosting productivity and all that. But let's be honest, there's a lot that could go wrong. We need to approach this strategically, thoughtfully, and with a healthy dose of Aussie pragmatism.
**1. Productivity vs. People: The Big Balancing Act**
The promise of AI is huge – automating tasks, creating new industries, generally making things *better*. But what about the people whose jobs might be affected? We can't just wave a magic wand and say "AI will create new jobs!" We need concrete plans. That means:
* **Upskilling & Reskilling:** Massive investment in training programs. Not just basic computer literacy, but specialized skills for emerging AI-related roles.
* **Safety Nets:** Stronger social safety nets for those displaced by automation. Universal Basic Income? Expanded unemployment benefits? These are conversations we *need* to be having.
* **Focus on Augmentation, Not Just Automation:** Let's explore how AI can *assist* workers, making them more efficient and productive, rather than simply replacing them.
**2. Policy Priorities: Data Centers & Brainpower**
To be a serious player in AI, we need the infrastructure. That means:
* **Data Centers, Here We Come:** Building local data centers isn't just about jobs; it's about data sovereignty and reducing reliance on overseas providers. Let's incentivize this.
* **Attracting the Best & Brightest:** The US is facing some challenges in higher education, which presents an opportunity. We need to make Australia a magnet for AI talent. That means streamlined visa processes, attractive tax incentives, and a welcoming culture.
* **Beyond the Hype: Funding Research:** We need to support fundamental AI research, not just chasing the latest trends. Long-term investment is key.
**3. Public Sector AI: Lessons Learned**
Government can be a powerful catalyst for AI adoption, but we're not exactly known for flawless digital transformations. Let's avoid repeating past mistakes:
* **Open Data, Open Minds:** Data needs to be accessible in machine-readable formats. No more PDFs!
* **Focus on User Needs:** AI solutions need to be designed with the end-user in mind – citizens, healthcare professionals, emergency responders.
* **Agile Development:** Let's embrace agile development methodologies, allowing for iterative improvements and rapid prototyping.
**4. Skills for the Future: Beyond the PhD**
AI isn't just for PhDs and data scientists. We need a broader range of skills:
* **Apprenticeships & Vocational Training:** Let's invest in practical, hands-on training programs.
* **"AI Literacy" for Everyone:** Basic understanding of AI concepts should be part of the curriculum at all levels of education.
* **The Human Element:** Don't forget the importance of soft skills – creativity, critical thinking, communication.
**5. Tax & Incentives: Leveling the Playing Field**
The current tax system isn't exactly conducive to AI innovation. We need to:
* **R&D Tax Credits:** Generous tax credits for companies investing in AI research.
* **Small Business Support:** Grants and mentorship programs for startups.
* **Re-evaluating Corporate Transparency:** Holding large corporations accountable for their tax contributions.
**6. Security & Ethics: Building Trust**
AI is powerful, but it also poses risks. We need to:
* **Data Privacy Laws:** Robust data privacy laws to protect citizens' information.
* **Algorithmic Transparency:** Making AI algorithms more transparent and explainable.
* **Ethical Guidelines:** Developing ethical guidelines for AI development and deployment.
**7. Copyright & Data Access: Fueling Innovation**
Current copyright laws can be a significant barrier to AI innovation. We need to:
* **Fair Use Reform:** Re-evaluating fair use principles to allow for greater data access for AI training.
* **Open Data Initiatives:** Promoting open data initiatives to make more data available for AI development.
**8. Avoiding Bureaucracy: Let's Keep it Lean**
We don't want to create a new layer of bureaucracy that stifles innovation. Let's:
* **Empower the Private Sector:** Let the private sector lead the way, with government providing support and guidance.
* **Focus on Outcomes:** Measure success based on outcomes, not just activity.
**The Bottom Line:** Australia has the potential to be a leader in AI. But it requires a strategic, thoughtful, and collaborative approach. Let's focus on creating a future where AI benefits everyone, not just a select few. And let's do it with a bit of that classic Aussie ingenuity and a whole lot of common sense.
---
**Note:** I'm ready for feedback and further refinement! Let me know what you think.