-
Notifications
You must be signed in to change notification settings - Fork 9
82 lines (82 loc) · 3.04 KB
/
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
name: ManagementAgent QuickStart builds
on:
pull_request_target:
types:
- closed
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set tag name
run: echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV
- name: Package ATP Monitoring
run: |
cd ./atp-monitoring && zip -r ../atp-monitoring.zip . && cd -
- name: Package Helm charts
run: |
cd ./kubernetes-monitoring/mgmtagent_helm && zip -r ../../mgmtagent-helm.zip . && cd -
- name: Package Management Gateway Quickstart
run: |
cd ./management-gateway-quickstart && zip -r ../mgmtgateway-quickstart.zip . && cd -
- name: Package ansible playbooks
run: |
cd ./deployment/ansible-playbooks && zip -r ../../ansible-playbooks.zip . && cd -
- name: Package Management Agent Policy Advisor
run: |
cd ./mgmtagent-policy-advisor && zip -r ../mgmtagent-policy-advisor.zip . && cd -
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.tag }}
release_name: Management Agent Quick Start Apps release ${{ env.tag }}
- name: Upload ATP Monitoring Terraform package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./atp-monitoring.zip
asset_name: atp-monitoring.zip
asset_content_type: application/zip
- name: Upload Helm chart package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./mgmtagent-helm.zip
asset_name: mgmtagent-helm.zip
asset_content_type: application/zip
- name: Upload Management Gateway Quickstart package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./mgmtgateway-quickstart.zip
asset_name: mgmtgateway-quickstart.zip
asset_content_type: application/zip
- name: Upload ansible playbooks package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ansible-playbooks.zip
asset_name: ansible-playbooks.zip
asset_content_type: application/zip
- name: Upload Management Agent Policy Advisor package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./mgmtagent-policy-advisor.zip
asset_name: mgmtagent-policy-advisor.zip
asset_content_type: application/zip