Skip to content

Commit

Permalink
Merge pull request #88 from pi-hole/fix/platform
Browse files Browse the repository at this point in the history
Fix broken deploy step
  • Loading branch information
DL6ER committed Nov 20, 2023
2 parents c4420c3 + 1184e54 commit d3254fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 4 additions & 8 deletions .github/actions/merge-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ inputs:
imagename:
required: true
description: The name of the image to push
platform:
required: true
description: The platform to push the image for
registry:
required: true
description: The Registry to push the image to
Expand All @@ -19,7 +16,6 @@ runs:
shell: bash
run: |
[[ "${{ inputs.imagename }}" ]] || { echo "imagename input is empty" ; exit 1; }
[[ "${{ inputs.platform }}" ]] || { echo "platform input is empty" ; exit 1; }
[[ "${{ inputs.registry }}" ]] || { echo "registry input is empty" ; exit 1; }
-
Expand All @@ -37,12 +33,12 @@ runs:
# type=ref,event=branch means that a tag is applied when the workflow is triggered by a push to a branch
# type=ref,event=tag means that a tag is applied when the workflow is triggered by a push to a tag
tags: |
type=schedule,suffix=-${{ inputs.platform }},enable=${{ github.event_name == 'schedule' }}
type=ref,event=branch,suffix=-${{ inputs.platform }},enable=${{ github.event_name != 'schedule' }}
type=ref,event=tag,suffix=-${{ inputs.platform }}
type=schedule,enable=${{ github.event_name == 'schedule' }}
type=ref,event=branch,enable=${{ github.event_name != 'schedule' }}
type=ref,event=tag
-
name: Create manifest list and push to repository
working-directory: /tmp/digests/${{ inputs.registry }}/${{ inputs.platform }}
working-directory: /tmp/digests/${{ inputs.registry }}
# When using composite actions, you have to specify the shell. As you
# don’t specify a runner type in composite actions, you need to specify
# the shell instead for each action.
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ftl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,10 @@ jobs:
uses: ./.github/actions/merge-and-push
with:
imagename: ${{ env.DOCKER_REGISTRY_IMAGE }}
platform: alpine
registry: dockerhub
-
name: Collect and push (GitHub Container Registry)
uses: ./.github/actions/merge-and-push
with:
imagename: ${{ env.GITHUB_REGISTRY_IMAGE }}
platform: alpine
registry: ghcr

0 comments on commit d3254fa

Please sign in to comment.