2020-05-04 21:02:27 +02:00
|
|
|
name: Build and Publish (master)
|
2020-04-04 06:34:00 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2020-05-04 21:02:27 +02:00
|
|
|
build-amd64:
|
2020-04-04 06:34:00 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-05-04 21:02:27 +02:00
|
|
|
- uses: actions/checkout@v2
|
2020-04-04 06:34:00 +02:00
|
|
|
- name: Build and Push Docker Image (Linux - AMD64)
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
repository: ekofr/pihole-exporter
|
|
|
|
tags: amd64
|
2020-05-04 20:50:12 +02:00
|
|
|
build_args: OS=linux,ARCH=amd64,IMAGE=scratch
|
2020-05-04 21:02:27 +02:00
|
|
|
|
|
|
|
build-arm32:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-05-04 20:50:12 +02:00
|
|
|
- name: Build and Push Docker Image (Linux - ARM32)
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
repository: ekofr/pihole-exporter
|
|
|
|
tags: arm32
|
2020-05-04 21:02:27 +02:00
|
|
|
build_args: OS=linux,ARCH=arm,IMAGE=arm32v7/alpine:3.11
|
|
|
|
|
|
|
|
build-arm64:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-04-04 17:20:09 +02:00
|
|
|
- name: Build and Push Docker Image (Linux - ARM64)
|
2020-04-04 06:34:00 +02:00
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
repository: ekofr/pihole-exporter
|
2020-04-04 06:46:31 +02:00
|
|
|
tags: arm64
|
2020-05-04 20:50:12 +02:00
|
|
|
build_args: OS=linux,ARCH=arm64,IMAGE=arm64v8/alpine:3.11
|