Add Pihole Build
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m22s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m22s
This commit is contained in:
26
.gitea/workflows/pihole-build.yml
Normal file
26
.gitea/workflows/pihole-build.yml
Normal 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
|
||||
Reference in New Issue
Block a user