mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-15 10:15:16 +01:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Build and Publish (master)
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-amd64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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
|
|
build_args: OS=linux,ARCH=amd64,IMAGE=scratch
|
|
|
|
build-arm32:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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
|
|
build_args: OS=linux,ARCH=arm,IMAGE=arm32v7/alpine:3.11
|
|
|
|
build-arm64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build and Push Docker Image (Linux - ARM64)
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
repository: ekofr/pihole-exporter
|
|
tags: arm64
|
|
build_args: OS=linux,ARCH=arm64,IMAGE=arm64v8/alpine:3.11
|