Skip to content

Commit

Permalink
add force build
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed Nov 16, 2023
1 parent c5f02e7 commit aa985ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/force-build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
type: "stable"
run: echo release=$(curl --silent "https://api.github.com/repos/aleksanderbl29/docker-pihole-unbound/releases/latest" | jq -r '.tag_name' ) >> $GITHUB_OUTPUT

- name: Get todays date
id: date
run: echo date=$(date +%Y-%m-%d) >> $GITHUB_OUTPUT

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand All @@ -50,15 +54,15 @@ jobs:
context: "{{defaultContext}}:pihole-unbound/"
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
push: true
tags: aleksanderbl/pihole-unbound:latest,aleksanderbl/pihole-unbound:${{ steps.latest_release.outputs.release }}
tags: aleksanderbl/pihole-unbound:latest,aleksanderbl/pihole-unbound:${{ steps.latest_release.outputs.release }},aleksanderbl/pihole-unbound:${{ steps.latest_release.outputs.release }}-force-${{steps.date.outputs.date}}

- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.latest_release.outputs.release }}
name: "${{ steps.latest_release.outputs.release }}"
tag_name: "${{ steps.latest_release.outputs.release }}-force-${{steps.date.outputs.date}}"
name: "Forced build of ${{ steps.latest_release.outputs.release }}"
body: |
This release was force built by @aleksanderbl29
Expand Down

0 comments on commit aa985ce

Please sign in to comment.