mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-07-07 16:30:54 +02:00
2e5998175b
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Login to container registries
|
|
description: Login to container registries Docker Hub and GitHub Container Registry
|
|
|
|
inputs:
|
|
# Actions cannot access secrets so pass them in as inputs
|
|
docker_username:
|
|
required: true
|
|
description: The username to use to login to Docker Hub
|
|
docker_password:
|
|
required: true
|
|
description: The password to use to login to Docker Hub
|
|
ghcr_username:
|
|
required: true
|
|
description: The username to use to login to GitHub Container Registry
|
|
ghcr_password:
|
|
required: true
|
|
description: The password to use to login to GitHub Container Registry
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: docker.io
|
|
username: ${{ inputs.docker_username }}
|
|
password: ${{ inputs.docker_password }}
|
|
-
|
|
name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ inputs.ghcr_username }}
|
|
password: ${{ inputs.ghcr_password }} |