-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.41 KB
/
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: Test Action
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Meshstack Authentication
id: setup-meshstack-auth
uses: ./
with:
base_url: 'https://federation.dev.meshcloud.io'
bb_run_uuid: 'c087f5e4-f494-437c-9162-27d7467e3fba'
steps: |
[
{ "id": "terraform-validate", "displayName": "terraform validate" },
{ "id": "terraform-plan", "displayName": "terraform plan" },
{ "id": "terraform-apply", "displayName": "terraform apply" }
]
client_id: ${{ secrets.CLIENT_ID }}
key_secret: ${{ secrets.KEY_SECRET }}
# - name: Read token from file
# id: read-token
# run: |
# token=$(cat ${{ steps.setup-meshstack-auth.outputs.token_file }} | jq -r .token)
# echo "MESHSTACK_API_TOKEN=$token" >> $GITHUB_ENV
# - name: Send status
# uses: meshcloud/[email protected]
# with:
# base_url: 'https://example.com'
# bb_run_uuid: 'example-uuid'
# step_id: "terraform-validate"
# status: 'SUCCEEDED'
# token: ${{ env.MESHSTACK_API_TOKEN }}
# user_message: 'Successful validate Terraform configuration.'
# system_message: 'Successful validate Terraform configuration.'
#