-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.13 KB
/
deploy-to-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy to Test
# Only one workflow in a concurrency group may run at a time
concurrency:
group: test-concurrency
cancel-in-progress: true
on:
release:
types: [created]
jobs:
trigger-github-deployment:
name: Trigger GitHub Deployment
environment: test
runs-on: ubuntu-latest
steps:
- name: Start deployment to test
run: echo "Deployment to test started"
build-and-publish-release-to-test:
name: Build and publish containers for test
uses: ./.github/workflows/build-and-publish.yml
needs: trigger-github-deployment
with:
Registry: ghcr.io
ImageName: ${{ github.repository }}
Tag: ${{ github.event.release.tag_name }}
Environment: test
secrets: inherit
deploy:
name: Update deployment in Test
needs: [trigger-github-deployment, build-and-publish-release-to-test]
uses: ./.github/workflows/deploy-to-radix.yml
with:
Environment: test
VersionTag: ${{ github.event.release.tag_name }}
secrets:
ClientId: ${{ secrets.CLIENT_ID }}
TenantId: ${{ secrets.TENANT_ID }}