Use hub namepace in all actions.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
4782f15123
commit
aefeb2bc8d
|
@ -59,4 +59,4 @@ jobs:
|
|||
PIHOLE_VERSION=nightly
|
||||
push: true
|
||||
tags: |
|
||||
pihole/pihole:nightly
|
||||
${{ secrets.DOCKERHUB_NAMESPACE }}/pihole:nightly
|
|
@ -26,27 +26,34 @@ jobs:
|
|||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Get the tag name
|
||||
-
|
||||
name: Get the tag name
|
||||
run: |
|
||||
echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
- name: Docker meta
|
||||
-
|
||||
name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v3
|
||||
with:
|
||||
images: ${{ secrets.DOCKERHUB_NAMESPACE }}/pihole
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to DockerHub
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_PASS }}
|
||||
- name: Build and push
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
|
@ -55,4 +62,4 @@ jobs:
|
|||
PIHOLE_VERSION=${{ env.TAG }}
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
|
@ -64,4 +64,4 @@ jobs:
|
|||
PIHOLE_VERSION=${{ github.event.inputs.name }}
|
||||
push: true
|
||||
tags: |
|
||||
pihole/pihole:${{ github.event.inputs.name }}
|
||||
${{ secrets.DOCKERHUB_NAMESPACE }}/pihole:${{ github.event.inputs.name }}
|
||||
|
|
Loading…
Reference in New Issue