Add action
This commit is contained in:
parent
4525aeeb65
commit
68135ac7b8
20
action.yml
20
action.yml
@ -4,6 +4,18 @@ inputs:
|
|||||||
name:
|
name:
|
||||||
description: "Directory name"
|
description: "Directory name"
|
||||||
required: true
|
required: true
|
||||||
|
REGISTRY_USERNAME:
|
||||||
|
description: "Registry username"
|
||||||
|
required: true
|
||||||
|
REGISTRY_TOKEN:
|
||||||
|
description: "Registry token"
|
||||||
|
required: true
|
||||||
|
DOCKER_USERNAME:
|
||||||
|
description: "Docker username"
|
||||||
|
required: true
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
description: "Docker password"
|
||||||
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@ -18,14 +30,14 @@ runs:
|
|||||||
uses: https://git.kjan.de/actions/login-action@v3
|
uses: https://git.kjan.de/actions/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.kjan.de
|
registry: git.kjan.de
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ inputs.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ inputs.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker.io Registry
|
- name: Login to Docker.io Registry
|
||||||
uses: https://git.kjan.de/actions/login-action@v3
|
uses: https://git.kjan.de/actions/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ inputs.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ inputs.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user