File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 name : Build
13- runs-on : self-hosted
13+ runs-on : ubuntu-latest
1414 steps :
1515 - name : Checkout repository
1616 uses : actions/checkout@v3
2828 docker push ghcr.io/${{ github.repository }}:${{ github.sha }}
2929 docker tag ghcr.io/${{ github.repository }}:${{ github.sha }} ghcr.io/${{ github.repository }}:latest
3030 docker push ghcr.io/thenulldev/api:latest
31-
32- deploy :
33- name : Deploy
34- needs : build
35- runs-on : self-hosted
36- env :
37- KUBE_CONFIG : ${{ secrets.KUBE_CONFIG }}
38- environment :
39- name : Live
40- url : https://torch.thenull.dev
41- steps :
42- - name : Deploy
43- uses : actions-hub/kubectl@master
44- with :
45- args : set image -n nulldev deployment/${{ env.DEPLOYMENT_ID }} ${{ env.DEPLOYMENT_ID }}=ghcr.io/${{ github.repository }}:${{ github.sha }}
46-
47- - name : Rollout
48- uses : actions-hub/kubectl@master
49- with :
50- args : rollout status -n nulldev deployment/${{ env.DEPLOYMENT_ID }}
You can’t perform that action at this time.
0 commit comments