-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (63 loc) · 1.9 KB
/
cd-to-test-on-workflow-dispatch.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Deploy to TEST On Workflow Dispatch.
env:
deployment_name: pay-transparency
on:
workflow_dispatch:
inputs:
tag:
description: "The Docker Tag to deploy, it would be the latest tagged version that you want to deploy from dev to TEST."
required: true
is_hotfix:
description: "Is this a hotfix deployment?"
required: false
default: false
type: boolean
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
image-promotions-to-test: # This is just for adding another tag to the image to reflect which docker tag is deployed to TEST.
if: ${{ !github.event.inputs.is_hotfix }}
name: Image Promotions to TEST
runs-on: ubuntu-22.04
permissions:
packages: write
strategy:
matrix:
package:
[
backend,
database-migrations,
admin-frontend,
frontend,
doc-gen-service,
backend-external,
maintenance,
]
steps:
- uses: shrink/actions-docker-registry-tag@v4
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
target: "${{ github.event.inputs.tag }}"
tags: test
deploys:
name: Deploys (test)
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
target: test
environment: test
tag: ${{ github.event.inputs.tag }}
frontend-url: https://test.paytransparency.fin.gov.bc.ca
admin-frontend-url: https://test.ptrtadmin.fin.gov.bc.ca
semver: ${{ github.event.inputs.tag }}
values: "values-test.yaml"
test-integration:
name: Integration
needs: [deploys]
uses: ./.github/workflows/.integration.yml
secrets: inherit
with:
backend-external-url: https://pay-transparency-test-backend-external.apps.silver.devops.gov.bc.ca/api
environment: test