Update master.yml
This commit is contained in:
parent
a1ccafcf33
commit
0985fda8a7
1 changed files with 1 additions and 29 deletions
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 a new issue