Allow internal PRs to push

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2020-07-17 20:35:55 -05:00
parent 6fc9d4d186
commit 9c791f099f
1 changed files with 5 additions and 3 deletions

View File

@ -6,6 +6,8 @@ on:
- dev
- v*
- beta-v*
- release/*
tags:
pull_request:
#env:
@ -30,20 +32,20 @@ jobs:
echo "Building ${ARCH}-${DEBIAN_VERSION}"
./gh-actions-test.sh
- name: Push the ARCH image
if: github.event_name != 'pull_request'
if: github.repository == 'pihole/docker-pi-hole'
run: |
. gh-actions-vars.sh
echo "${{ secrets.DOCKERHUB_PASS }}" | docker login --username="${{ secrets.DOCKERHUB_USER }}" --password-stdin
docker push "${ARCH_IMAGE}"
- name: Upload gh-workspace
if: github.event_name != 'pull_request'
if: github.repository == 'pihole/docker-pi-hole'
uses: actions/upload-artifact@v1
with:
name: gh-workspace
path: .gh-workspace
publish:
if: github.event_name != 'pull_request'
if: github.repository == 'pihole/docker-pi-hole'
runs-on: ubuntu-latest
needs: test-and-build
steps: