mirror of
https://github.com/sujiba/pihole-unbound-hyperlocal.git
synced 2025-07-10 13:55:12 +02:00
Create docker_build_push.yml
This commit is contained in:
parent
678bd62a22
commit
ab5db43483
1 changed files with 30 additions and 0 deletions
30
.github/workflows/docker_build_push.yml
vendored
Normal file
30
.github/workflows/docker_build_push.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Build and push pihole-unbound-hyperlocal
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
user: ${{ secret.DOCKER_USER }}
|
||||
password: ${{ secret.DOCKER_ACCESS_TOKEN }}
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: /docker-build
|
||||
file: ./Dockerfile
|
||||
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pihole-unbound-hyperlocal:`cat VERSION`,${{ secrets.DOCKER_HUB_USERNAME }}/pihole-unbound-hyperlocal:latest
|
Loading…
Add table
Add a link
Reference in a new issue