Build
This commit is contained in:
30
.gitea/workflows/pihole-build_nightly.yml
Normal file
30
.gitea/workflows/pihole-build_nightly.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Build and Push Pihole Nightly Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- nightly
|
||||
schedule:
|
||||
- cron: "0 2 * * 1,4"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: nightly
|
||||
|
||||
- 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:nightly .
|
||||
|
||||
- name: Push Docker Image to Gitea
|
||||
run: docker push gitea.awptechnologies.co/${{ vars.OWNER }}/pihole-unbound:nightly
|
||||
Reference in New Issue
Block a user