-
Notifications
You must be signed in to change notification settings - Fork 35
72 lines (62 loc) · 2.16 KB
/
Copy pathverify-master.yaml
File metadata and controls
72 lines (62 loc) · 2.16 KB
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
66
67
68
69
70
71
72
name: Verify
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches:
- master
schedule:
- cron: "0 7 * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
verify:
runs-on: ubuntu-latest
container: quay.io/ibmgaragecloud/cli-tools:v0.15
strategy:
matrix:
platform: [ibm_ocp48]
fail-fast: false
env:
HOME: /home/devops
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Verify deploy on ${{ matrix.platform }}
uses: cloud-native-toolkit/action-module-verify-deploy@main
with:
clusterId: ${{ matrix.platform }}
validateDeployScript: .github/scripts/validate-deploy.sh
testStagesDir: ./terraform/stages
env:
TF_VAR_ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
- name: Verify destroy on ${{ matrix.platform }}
uses: cloud-native-toolkit/action-module-verify-destroy@main
if: ${{ always() }}
with:
clusterId: ${{ matrix.platform }}
testStagesDir: ./terraform/stages
env:
TF_VAR_ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
IBMCLOUD_API_KEY: ${{ secrets.IBMCLOUD_API_KEY }}
- id: date
run: echo "##[set-output name=data;]$(date)"
- name: Time badge
uses: RubbaBoy/BYOB@v1.2.0
with:
NAME: time
LABEL: 'Last run on'
STATUS: ${{ steps.date.outputs.data }}
COLOR: 00EEFF
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Slack Notification
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_USERNAME: "cntkBot"
SLACK_ICON_EMOJI: ":cloudwb:"
SLACK_TITLE: "iZero verify failed"
SLACK_MESSAGE: "Iteration Zero deploy verification failed"
MSG_MINIMAL: true