mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-22 11:15:19 +01:00
Merge pull request #100 from eko/eko-patch-1
Removed CI build on branches and pull requests
This commit is contained in:
commit
502756592f
30
.github/workflows/master.yml
vendored
30
.github/workflows/master.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build/Push (master)
|
name: Test (master)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -26,31 +26,3 @@ jobs:
|
|||||||
- name: Run go tests
|
- name: Run go tests
|
||||||
run: go test -v -cover -race ./...
|
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 }}
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user