2025-01-12 23:38:31 -05:00
|
|
|
name: Gitea Actions CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2025-01-12 23:39:16 -05:00
|
|
|
branches: [master]
|
2025-01-12 23:38:31 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
name: Build and deploy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: build image
|
|
|
|
run: |
|
2025-01-13 20:06:49 -05:00
|
|
|
docker build -t registry.int.xeserv.us/tulpamancy/tulpanomicon .
|
2025-01-12 23:38:31 -05:00
|
|
|
- name: push image
|
|
|
|
run: |
|
2025-01-13 20:06:49 -05:00
|
|
|
docker push registry.int.xeserv.us/tulpamancy/tulpanomicon
|
2025-01-12 23:57:46 -05:00
|
|
|
- uses: actions-hub/kubectl@master
|
|
|
|
env:
|
|
|
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_ALREST }}
|
|
|
|
KUBE_CONTEXT: alrest
|
|
|
|
with:
|
|
|
|
args: apply -k manifest
|
|
|
|
- uses: actions-hub/kubectl@master
|
|
|
|
env:
|
|
|
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_ALREST }}
|
|
|
|
KUBE_CONTEXT: alrest
|
|
|
|
with:
|
|
|
|
args: rollout restart -n default deployment/tulpanomicon
|