mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2026-04-21 01:10:25 +01:00
8
.github/workflows/test-and-build.yaml
vendored
8
.github/workflows/test-and-build.yaml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user