setup gitea actions for when the runner works
This commit is contained in:
22
.gitea/workflows/deploy.yml
Normal file
22
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: bitnami/kubectl
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up kubeconfig
|
||||||
|
run: echo "$KUBE_CONFIG" > ~/.kube/config
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
run: ./deploy.sh
|
||||||
20
.gitea/workflows/dry-run.yml
Normal file
20
.gitea/workflows/dry-run.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: Dry Run
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dry-run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: bitnami/kubectl
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up kubeconfig
|
||||||
|
run: echo "$KUBE_CONFIG" > ~/.kube/config
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
|
||||||
|
- name: Dry-run deployment
|
||||||
|
run: DRU_RUN=true ./deploy.sh
|
||||||
Reference in New Issue
Block a user