31 lines
786 B
YAML
31 lines
786 B
YAML
name: Build and Push Pihole Latest Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "0 2 * * 1,4"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: main
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Log in to Gitea Registry
|
|
run: echo ${{ secrets.BUILD }} | docker login gitea.awptechnologies.co -u ${{ vars.OWNER }} --password-stdin
|
|
|
|
- name: Build Docker Image
|
|
run: docker build --no-cache -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
|