Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fmdlc committed Oct 29, 2020
1 parent 082d0be commit bd2b89d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
name: Build

name: Build and Push image
on:
push:
branches:
- master
- develop

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
buildx-version: latest

- name: Hadolint Action
uses: brpaz/[email protected]
with:
dockerfile: ./docker-compose/telegraf/
- name: hub.docker.com Login
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build the multi-arch image
run: |
docker buildx build \
--push \
--tag tty0/isp_telegraf:1.15.3 \
--tag tty0/isp_telegraf:latest \
--platform linux/amd64,linux/arm/v7,linux/arm64 ./docker-compose/telegraf/
--push \
--tag tty0/isp_telegraf:1.15.3 \
--tag tty0/isp_telegraf:latest \
--platform linux/amd64,linux/arm/v7,linux/arm64 ./docker-compose/telegraf/
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: YAML Lint
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: Lint and validate
on: [ pull_request, push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Hadolint Action
uses: brpaz/[email protected]
with:
dockerfile: ./docker-compose/telegraf/
- uses: actions/checkout@v2
- name: YAML Lint
uses: ibiqlik/[email protected]
with:
file_or_dir: ./kubernetes/yaml/
config_file: ./.yamllint
file_or_dir: ./kubernetes/yaml/
config_file: ./.yamllint
- name: kube-score check
uses: piraces/[email protected]
with:
Expand All @@ -27,4 +27,3 @@ jobs:
ignore_missing_schemas: true
comment: true
token: ${{ secrets.GH_TOKEN }}

0 comments on commit bd2b89d

Please sign in to comment.