forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.21 KB
/
docker.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
name: "Docker Build"
on:
workflow_dispatch: {}
# build a daily dev image
schedule:
- cron: "42 6 * * *"
push:
tags:
# todo: update for 1.0
- 0.*
jobs:
Publish:
permissions:
id-token: write
strategy:
matrix:
image:
- c7n
- c7n-org
- mailer
- policystream
- c7n-left
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v4
- name: ${{ matrix.image }} build and push
uses: ./.github/composites/docker-build-push
env:
HUB_USER: c7nbuild
HUB_TOKEN: ${{ secrets.DOCKER_CI_HUB_TOKEN }}
with:
name: ${{ matrix.image }}
push: true
platforms: linux/arm64,linux/amd64
- name: Notify Slack
uses: ravsamhq/notify-slack-action@v2
if: always()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_HOOK }}
with:
status: ${{ job.status }}
notification_title: "{workflow}:{job} has {status_message}"
message_format: "{emoji} *{workflow}:{job}* {status_message} in <{repo_url}|{repo}>"
footer: "Logs <{run_url}|{job}>"
notify_when: "failure,success"