forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.64 KB
/
lint-images-base.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
45
46
47
48
49
name: Base Image Lint
# Any change in triggers needs to be reflected in the concurrency group.
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- v1.10
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
lint:
if: github.repository == 'cilium/cilium'
name: Lint image build logic
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
with:
persist-credentials: false
- uses: docker://quay.io/cilium/image-maker:ca3f9135c0c8cb88c979f829d93a167838776615@sha256:b64f9168f52dae5538cd8ca06922e522eb84e36d3f727583c352266e3ed15894
name: Run make lint
with:
entrypoint: make
args: -C images lint
- uses: docker://quay.io/cilium/image-maker:ca3f9135c0c8cb88c979f829d93a167838776615@sha256:b64f9168f52dae5538cd8ca06922e522eb84e36d3f727583c352266e3ed15894
name: Check if runtime and builder images are up-to-date
with:
entrypoint: make
args: -C images check-runtime-image check-builder-image
- name: Send slack notification
if: ${{ !success() && (github.event_name == 'schedule' || github.event_name == 'push') }}
uses: 8398a7/action-slack@c9ff874f8549f97317ec9f6162d5449ee77bc984
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}