openforce/.forgejo/workflows/deploy.yaml
Goose d15b3c51ac
Some checks failed
Build, Test, and Deploy / build-and-deploy (push) Failing after 2m17s
ci(deploy): add production settings, Dockerfile, k8s manifests, and Forgejo deployment workflow
2026-09-27 01:16:13 +00:00

30 lines
885 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 set image deployment/openforce \
openforce=git.ch4t.buzz/buzzparty/openforce:${{ github.sha }} \
-n default
kubectl rollout status deployment/openforce -n default --timeout=180s