chore: Update pihole-unbound version to 2024.07.0 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build and release for pihole-unbound" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "pihole-unbound/**" | |
jobs: | |
create: | |
name: "Creates the newest release by version" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout project | |
uses: actions/[email protected] | |
# Step to update the root.hints file | |
- name: Update root.hints | |
run: curl -sSL https://www.internic.net/domain/named.root -o pihole-unbound/unbound/root.hints | |
# New step to read the VERSION file and set the version as an output | |
- name: Get the version | |
id: get_version | |
run: echo "pihole_unbound_version=$(cat pihole-unbound/VERSION)" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@master | |
with: | |
platforms: all | |
- name: Set up Docker Build | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
context: ./pihole-unbound | |
file: ./pihole-unbound/Dockerfile | |
tags: | | |
bigbeartechworld/big-bear-pihole-unbound:latest | |
bigbeartechworld/big-bear-pihole-unbound:${{ env.pihole_unbound_version }} |