make CI autodeploy
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
c16557774d
commit
8d36fa0a6a
@ -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
4
manifest/ci.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: techaro-ci
|
@ -1,4 +1,5 @@
|
||||
resources:
|
||||
- ci.yaml
|
||||
- deployment.yaml
|
||||
- ingress.yaml
|
||||
- secret.yaml
|
||||
|
Loading…
x
Reference in New Issue
Block a user