openforce/.forgejo/workflows/deploy.yaml
Goose 7c2f46d697
Some checks failed
Build, Test, and Deploy / build-and-deploy (push) Failing after 30s
ci(deploy): apply k8s manifests before updating image in rollout
2026-09-27 01:27:57 +00:00

31 lines
921 B
YAML

name: Build, Test, and Deploy
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Package Docker Image
run: |
docker build \
-t git.ch4t.buzz/buzzparty/openforce:${{ github.sha }} \
-t git.ch4t.buzz/buzzparty/openforce:latest \
.
- name: Push to Forgejo Registry
run: |
docker push git.ch4t.buzz/buzzparty/openforce:${{ github.sha }}
docker push git.ch4t.buzz/buzzparty/openforce:latest
- name: Roll out to Kubernetes
run: |
kubectl apply -f k8s.yaml
kubectl set image deployment/openforce \
openforce=git.ch4t.buzz/buzzparty/openforce:${{ github.sha }} \
-n default
kubectl rollout status deployment/openforce -n default --timeout=180s