forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.99 KB
/
Copy pathdocker.yml
File metadata and controls
65 lines (57 loc) · 1.99 KB
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
name: "Docker Build"
on:
push:
branches:
- master
tags:
# todo: update for 1.0
- 0.*
jobs:
Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Docker Build Env
# bin directory is in .dockerignore
run: |
python -m pip install --upgrade pip
pip install docker click pytest pyyaml six
mkdir -p bin
wget -q -O bin/trivy.tgz https://github.com/aquasecurity/trivy/releases/download/v0.5.4/trivy_0.5.4_Linux-64bit.tar.gz
cd bin && tar xzf trivy.tgz
# For *lightweight* functional image tests
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.DOCKER_CI_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DOCKER_CI_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
# Ubuntu images
- name: cli
env:
HUB_USER: c7nbuild
HUB_TOKEN: ${{ secrets.DOCKER_CI_HUB_TOKEN }}
run: |
python tools/dev/dockerpkg.py build -v --test --scan --push -t auto -r cloudcustodian -i cli
- name: org
env:
HUB_USER: c7nbuild
HUB_TOKEN: ${{ secrets.DOCKER_CI_HUB_TOKEN }}
run: |
python tools/dev/dockerpkg.py build -v --test --scan --push -t auto -r cloudcustodian -i org
- name: mailer
env:
HUB_USER: c7nbuild
HUB_TOKEN: ${{ secrets.DOCKER_CI_HUB_TOKEN }}
run: |
python tools/dev/dockerpkg.py build -v --test --scan --push -t auto -r cloudcustodian -i mailer
- name: policystream
env:
HUB_USER: c7nbuild
HUB_TOKEN: ${{ secrets.DOCKER_CI_HUB_TOKEN }}
run: |
python tools/dev/dockerpkg.py build -v --test --scan --push -t auto -r cloudcustodian -i policystream