File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build
2-
1+ name : Build and Push image
32on :
43 push :
54 branches :
65 - master
76 - develop
8-
97defaults :
108 run :
119 shell : bash
12-
1310jobs :
1411 build :
1512 runs-on : ubuntu-latest
1613 steps :
1714 - name : Checkout Code
1815 uses : actions/checkout@v2
19-
2016 - name : Install Docker Buildx
2117 id : buildx
2218 uses : crazy-max/ghaction-docker-buildx@v1
2319 with :
2420 buildx-version : latest
25-
21+ - name : Hadolint Action
22+ uses : brpaz/hadolint-action@v1.1.0
23+ with :
24+ dockerfile : ./docker-compose/telegraf/
2625 - name : hub.docker.com Login
2726 run : |
2827 echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
29-
3028 - name : Build the multi-arch image
3129 run : |
3230 docker buildx build \
33- --push \
34- --tag tty0/isp_telegraf:1.15.3 \
35- --tag tty0/isp_telegraf:latest \
36- --platform linux/amd64,linux/arm/v7,linux/arm64 ./docker-compose/telegraf/
37-
31+ --push \
32+ --tag tty0/isp_telegraf:1.15.3 \
33+ --tag tty0/isp_telegraf:latest \
34+ --platform linux/amd64,linux/arm/v7,linux/arm64 ./docker-compose/telegraf/
Original file line number Diff line number Diff line change 1- name : YAML Lint
2- on :
3- push :
4- branches : [ master ]
5- pull_request :
6- branches : [ master ]
1+ name : Lint and validate
2+ on : [ pull_request, push ]
73jobs :
84 build :
95 runs-on : ubuntu-latest
106 steps :
7+ - name : Hadolint Action
8+ uses : brpaz/hadolint-action@v1.1.0
9+ with :
10+ dockerfile : ./docker-compose/telegraf/
1111 - uses : actions/checkout@v2
1212 - name : YAML Lint
1313 uses : ibiqlik/action-yamllint@v1.0.0
1414 with :
15- file_or_dir : ./kubernetes/yaml/
16- config_file : ./.yamllint
15+ file_or_dir : ./kubernetes/yaml/
16+ config_file : ./.yamllint
1717 - name : kube-score check
1818 uses : piraces/kube-score-ga@v0.1.1
1919 with :
2727 ignore_missing_schemas : true
2828 comment : true
2929 token : ${{ secrets.GH_TOKEN }}
30-
You can’t perform that action at this time.
0 commit comments