make CI autodeploy

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2024-09-20 09:51:09 -04:00
parent c16557774d
commit 8d36fa0a6a
Signed by: xe
SSH Key Fingerprint: SHA256:4VmLEcSFkJqNVktQ6/3CA2uSk8wGZ8VEzLmTQTyjngM
3 changed files with 15 additions and 1 deletions

View File

@ -45,4 +45,13 @@ jobs:
docker info
env
- name: build www image
run: earthly +run
run: earthly --push +run
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
KUBE_CONTEXT: ${{ secrets.KUBE_CONTEXT }}
with:
args: apply -k manifest
- uses: actions-hub/kubectl@master
with:
args: rollout restart -n default deployment/techaro-lol

4
manifest/ci.yaml Normal file
View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: techaro-ci

View File

@ -1,4 +1,5 @@
resources:
- ci.yaml
- deployment.yaml
- ingress.yaml
- secret.yaml