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: log into ghcr.io
|
|
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
|
|
|
with:
|
|
|
|
registry: git.xeserv.us
|
|
|
|
username: mimi
|
|
|
|
password: ${{ secrets.PUSH_TOKEN }}
|
|
|
|
- name: build image
|
|
|
|
run: |
|
|
|
|
docker build -t git.xeserv.us/tulpamancy/tulpanomicon .
|
|
|
|
- name: push image
|
|
|
|
run: |
|
2025-01-12 23:57:46 -05:00
|
|
|
docker push git.xeserv.us/tulpamancy/tulpanomicon
|
|
|
|
- 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
|