Skip to content

Commit bd2b89d

Browse files
committed
Updating tests
1 parent 082d0be commit bd2b89d

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
1-
name: Build
2-
1+
name: Build and Push image
32
on:
43
push:
54
branches:
65
- master
76
- develop
8-
97
defaults:
108
run:
119
shell: bash
12-
1310
jobs:
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 numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
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 ]
73
jobs:
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:
@@ -27,4 +27,3 @@ jobs:
2727
ignore_missing_schemas: true
2828
comment: true
2929
token: ${{ secrets.GH_TOKEN }}
30-

0 commit comments

Comments
 (0)