File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 71
71
if : ${{ github.event_name != 'pull_request' && github.ref_name == 'dev' }}
72
72
uses : ./.github/workflows/dev-deployment.yml
73
73
secrets : inherit
74
+ trigger-staging-deploy :
75
+ needs : test
76
+ if : ${{ github.event_name != 'pull_request' && github.ref_name == 'release/**' }}
77
+ uses : ./.github/workflows/staging-deployment.yml
78
+ secrets : inherit
Original file line number Diff line number Diff line change
1
+ name : Deploy to release staging environment
2
+ on :
3
+ workflow_call :
4
+
5
+ jobs :
6
+ deploy-staging :
7
+ runs-on : [self-hosted, Linux, X64]
8
+ environment : STAGING
9
+ if : ${{ github.event_name != 'pull_request' && github.ref_name == 'release/**' }}
10
+ env :
11
+ KUBE_HOST : ${{ secrets.KUBE_HOST }}
12
+ KUBE_CERTIFICATE : ${{ secrets.KUBE_CERTIFICATE }}
13
+ KUBE_TOKEN : ${{ secrets.KUBE_TOKEN }}
14
+ steps :
15
+ - name : Add SHORT_SHA env variable
16
+ run : echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV
17
+ - name : Deploy new image version
18
+ uses :
actions-hub/[email protected]
19
+ with :
20
+ args : --namespace defguard-staging set image deployment/defguard defguard=ghcr.io/defguard/defguard:sha-${{ env.SHORT_SHA }}
You can’t perform that action at this time.
0 commit comments