-
Notifications
You must be signed in to change notification settings - Fork 5
92 lines (72 loc) · 2.32 KB
/
github-actions-build.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Python package
on: [push]
jobs:
build_release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- run: echo "job automatically triggered by a ${{ github.event_name }} event."
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python requirements
run: |
pip install -r requirements.txt
#
# Build release and run Appinspect
#
- name: Build the release and submit to Splunk Appinspect vetting
env:
SPLUNK_BASE_LOGIN: ${{ vars.SPLUNK_BASE_LOGIN }}
SPLUNK_BASE_PASSWD: ${{ secrets.SPLUNK_BASE_PASSWD }}
run: |
cd build; python3 build.py --keep --submitappinspect --userappinspect "$SPLUNK_BASE_LOGIN" --passappinspect "$SPLUNK_BASE_PASSWD"
id: build_and_submit_appinspect
#
# Archive artifacts
#
- name: Archive Appinspect html report
if: always()
uses: actions/upload-artifact@v3
with:
name: appinspect-report-html
path: output/report_appinspect.html
- name: Archive Appinspect json report
if: always()
uses: actions/upload-artifact@v3
with:
name: appinspect-report-json
path: output/report_appinspect.json
- name: Archive tgz application
if: always()
uses: actions/upload-artifact@v3
with:
path: output/*.tgz
- name: Archive sha256sum
if: always()
uses: actions/upload-artifact@v3
with:
name: release-sha256.txt
path: output/release-sha256.txt
- name: Show output directory content
run: |
ls -ltr output/
- name: Retrieve version number
run: |
echo "VERSION_NUMBER=$(cat output/version.txt)" >> $GITHUB_ENV
- name: Show version number
run: |
echo "Version number is ${{ env.VERSION_NUMBER }}"
- name: Retrieve build number
run: |
echo "BUILD_NUMBER=$(cat output/build.txt)" >> $GITHUB_ENV
- name: Show build number
run: |
echo "Build number is ${{ env.BUILD_NUMBER }}"
#
#
#
- run: echo "End of process, job status ${{ job.status }}."