-
Notifications
You must be signed in to change notification settings - Fork 49
52 lines (47 loc) · 1.69 KB
/
cd.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
name: Business Create UI CD
on:
push:
branches:
- master
workflow_dispatch:
inputs:
environement:
description: "Environment (dev/test)"
required: true
default: "dev"
jobs:
business-create-ui-cd:
runs-on: ubuntu-latest
if: github.repository == 'bcgov/bcrs-business-create-ui'
steps:
- uses: actions/checkout@v2
- name: Set env by input
run: |
echo "TAG_NAME=${{ github.event.inputs.environement }}" >> $GITHUB_ENV
- name: Set env by master branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/master'
run: |
echo "TAG_NAME=dev" >> $GITHUB_ENV
- uses: pwei1018/bcrs-cd-action@latest
with:
WORKING_DIRECTORY: "."
APP_NAME: "business-create"
VAULTS: ""
SKIP_OP: "true"
OP_PARAMETERS: ""
OPENSHIFT_LOGIN_REGISTRY: ${{ secrets.OPENSHIFT_LOGIN_REGISTRY }}
OPENSHIFT_DOCKER_REGISTRY: ${{ secrets.OPENSHIFT_DOCKER_REGISTRY }}
OPENSHIFT_SA_NAME: ${{ secrets.OPENSHIFT_SA_NAME }}
OPENSHIFT_SA_TOKEN: ${{ secrets.OPENSHIFT_SA_TOKEN }}
OPENSHIFT_REPOSITORY: ${{ secrets.OPENSHIFT_REPOSITORY }}
OPENSHIFT_REPOSITORY_DEPLOYMENT: ${{ secrets.OPENSHIFT_REPOSITORY }}
- name: Rocket.Chat Notification
uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@master
if: failure()
with:
type: ${{ job.status }}
job_name: "*Business Create UI Built and Deployed to ${{env.TAG_NAME}}*"
channel: "#registries-bot"
url: ${{ secrets.ROCKETCHAT_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}