-
Notifications
You must be signed in to change notification settings - Fork 1.4k
44 lines (43 loc) · 1.24 KB
/
build-all-distros-nightly.yaml
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: Build all distros
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch: {}
jobs:
build-all-distros:
name: build all distros
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache go-build and mod
uses: actions/cache@v3
with:
path: |
~/.cache/go-build/
~/go/pkg/mod/
key: ${{ hashFiles('go.sum') }}
- name: Setup Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 #v4.0.0
with:
go-version: 1.18.x
- name: Setup deps
run: |
make install-build-deps
- name: build image
run: |
EKSCTL_IMAGE_VERSION=${GITHUB_REF#refs/*/} make -f Makefile.docker eksctl-image
- name: build all
run: |
make build-all
- name: slack on failure
if: failure()
uses: actions-ecosystem/action-slack-notifier@fc778468d09c43a6f4d1b8cccaca59766656996a
with:
slack_token: ${{ secrets.WEAVEWORKS_SLACK_EKSCTLBOT_TOKEN }}
message: ":ahhhhhhhhh: build-all-distros has failed"
channel: team-pitch-black
color: red
verbose: true