From 04497e55693adb9f401f8b9307e232f61d2c7042 Mon Sep 17 00:00:00 2001 From: awptechnologies Date: Thu, 31 Oct 2024 00:20:12 -0400 Subject: [PATCH] Add Pihole Build --- .gitea/workflows/pihole-build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/pihole-build.yml diff --git a/.gitea/workflows/pihole-build.yml b/.gitea/workflows/pihole-build.yml new file mode 100644 index 0000000..78428f5 --- /dev/null +++ b/.gitea/workflows/pihole-build.yml @@ -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