ci: 🚀 switch to gitea
Dev / release (pull_request) Has been skipped
Dev / Deploy to Kubernetes (pull_request) Has been skipped

This commit is contained in:
2026-01-08 15:42:13 +00:00
parent c1b0a7084b
commit ca7c5f77a4
15 changed files with 110 additions and 363 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Dev
on:
pull_request:
branches:
- "**"
jobs:
release:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'v')
runs-on: build-htz-01
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build and push Docker image
run: |
docker build -t cr.jdbnet.co.uk/public/ipam:dev \
--build-arg VERSION=dev \
.
docker push cr.jdbnet.co.uk/public/ipam:dev
deploy:
name: Deploy to Kubernetes
needs: release
runs-on: k3s-internal-htz-01
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Deploy to Kubernetes
run: |
sudo kubectl replace -f deployment.yml --grace-period=60 --force