File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 13
13
check :
14
14
uses : ./.github/workflows/check.yml
15
15
build :
16
- needs : [ check ]
16
+ needs : [check]
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : Correct env
38
38
with :
39
39
context : .
40
40
push : true
41
- tags : ghcr.io/${{ env.REPO }}:latest
41
+ tags : ghcr.io/${{ env.REPO }}:latest,ghcr.io/${{ env.REPO }}:git-${{ github.sha }}
42
42
platforms : linux/amd64
43
43
cache-from : type=gha
44
- cache-to : type=gha,mode=max
44
+ cache-to : type=gha,mode=max
45
+ deploy :
46
+ needs : [build]
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - uses : actions-hub/kubectl@master
50
+ env :
51
+ KUBE_HOST : ${{ secrets.KUBE_HOST }}
52
+ KUBE_CERTIFICATE : ${{ secrets.KUBE_CERTIFICATE }}
53
+ KUBE_TOKEN : ${{ secrets.KUBE_TOKEN }}
54
+ with :
55
+ args : set image deployment/mcping mcping=ghcr.io/${{ env.REPO }}:git-${{ github.sha }}
You can’t perform that action at this time.
0 commit comments