Update master.yml

This commit is contained in:
Vincent Composieux 2021-10-12 11:48:41 +02:00 committed by GitHub
parent a1ccafcf33
commit 0985fda8a7
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: 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 }}