Add Pihole Build
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m22s

This commit is contained in:
2024-10-31 00:20:12 -04:00
parent 50ca3ff423
commit 04497e5569

View File

@@ -0,0 +1,26 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Gitea Registry
run: echo ${{ secrets.PIHOLE }} | docker login gitea.awptechnologies.co -u ${{ vars.OWNER }} --password-stdin
- name: Build Docker Image
run: docker build -t gitea.awptechnologies.co/${{ vars.OWNER }}/pihole-unbound:latest .
- name: Push Docker Image to Gitea
run: docker push gitea.awptechnologies.co/${{ vars.OWNER }}/pihole-unbound:latest