-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (34 loc) · 1.19 KB
/
main.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
---
name: InstallApp
on: [push]
jobs:
install:
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Build cloudCtl
run: make build-cloudctl
- name: Generate Package
run: make generate-app-package
- name: Vet The Package - AppInspect
env:
SPLUNK_COM_USERNAME: ${{ secrets.SPLUNK_COM_USERNAME }}
SPLUNK_COM_PASSWORD: ${{ secrets.SPLUNK_COM_PASSWORD }}
run: make inspect-app-victoria # this can be changed to inspect-app to vet an app intended to be installed on a classic stack
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: report.json
path: report.json
- name: Install The App On Stack - ACS
env:
SPLUNK_COM_USERNAME: ${{ secrets.SPLUNK_COM_USERNAME }}
SPLUNK_COM_PASSWORD: ${{ secrets.SPLUNK_COM_PASSWORD }}
STACK_TOKEN: ${{ secrets.VICTORIA_STACK_TOKEN }}
STACK_NAME: ${{ secrets.VICTORIA_STACK_NAME }}
run: make install-app-victoria # this can be changed to install-app to install an app on a classic stack