Merge pull request #100 from eko/eko-patch-1

Removed CI build on branches and pull requests
This commit is contained in:
Vincent Composieux 2021-10-12 11:49:43 +02:00 committed by GitHub
commit 502756592f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: Build/Push (master)
name: Test (master)
on:
push:
@ -26,31 +26,3 @@ jobs:
- name: Run go tests
run: go test -v -cover -race ./...
build:
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
include:
- os: linux
arch: amd64
image: scratch
- os: linux
arch: arm
image: arm32v7/alpine:3.13
- os: linux
arch: arm64
image: arm64v8/alpine:3.13
steps:
- uses: actions/checkout@v2
- name: Build and push docker image (${{ matrix.os }}/${{ matrix.arch }})
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ekofr/pihole-exporter
tags: ${{ matrix.arch }}
build_args: OS=${{ matrix.os }},ARCH=${{ matrix.arch }},IMAGE=${{ matrix.image }}