forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.27 KB
/
install-sh.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
name: Update install.sh Suite
on:
push:
branches:
- master
paths:
- '.github/workflows/install-sh.yml'
- 'distribution/install.sh'
workflow_dispatch:
jobs:
sync-install:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2.3.4
- run: sudo apt-get install --yes python3-setuptools python3.6-dev
- run: pip3 install awscli --upgrade --user
- env:
AWS_ACCESS_KEY_ID: "${{ secrets.CI_AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.CI_AWS_SECRET_ACCESS_KEY }}"
run: make sync-install
test-install:
needs:
- sync-install
runs-on: ubuntu-20.04
steps:
- run: sudo apt-get install --yes curl bc
- run: curl --proto '=https' --tlsv1.2 -sSf https://sh.vector.dev | bash -s -- -y
- run: ~/.vector/bin/vector --version
install-shell-failure:
name: install-shell-failure
if: failure()
needs:
- sync-install
- test-install
runs-on: ubuntu-20.04
steps:
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@0.3.2
with:
args: "Update of sh.vector.dev failed: <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}>"