Skip to content

Commit 2d2573a

Browse files
Merge branch 'release/1.4-alpha' of github.com:DefGuard/defguard into release/1.4-alpha
2 parents 3769367 + 54062d1 commit 2d2573a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ jobs:
7171
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'dev' }}
7272
uses: ./.github/workflows/dev-deployment.yml
7373
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
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 }}

0 commit comments

Comments
 (0)