bestdadjokes/.forgejo/workflows/deploy.yml
djg 738fef469c
Some checks are pending
Build and Deploy / deploy (push) Waiting to run
ci: update image namespace to BuzzParty org
2026-09-21 22:35:48 +00:00

32 lines
897 B
YAML

name: Build and Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
env:
KUBECONFIG: /home/opc/.kube/config
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build image
run: |
docker build \
-t git.ch4t.buzz/buzzparty/bestdadjokes:${{ github.sha }} \
-t git.ch4t.buzz/buzzparty/bestdadjokes:latest \
.
- name: Push to registry
run: |
docker push git.ch4t.buzz/buzzparty/bestdadjokes:${{ github.sha }}
docker push git.ch4t.buzz/buzzparty/bestdadjokes:latest
- name: Roll out to k8s
run: |
kubectl set image deployment/static-bdj \
nginx=git.ch4t.buzz/buzzparty/bestdadjokes:${{ github.sha }} \
-n default
kubectl rollout status deployment/static-bdj -n default --timeout=120s