From 68135ac7b8ac655fd9fc07cdf0486b6b3a184a97 Mon Sep 17 00:00:00 2001 From: jank Date: Fri, 16 Aug 2024 21:06:25 +0200 Subject: [PATCH] Add action --- action.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 9f3168c..f185ac3 100644 --- a/action.yml +++ b/action.yml @@ -4,6 +4,18 @@ inputs: name: description: "Directory name" 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: using: "composite" @@ -18,14 +30,14 @@ runs: uses: https://git.kjan.de/actions/login-action@v3 with: registry: git.kjan.de - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_TOKEN }} + username: ${{ inputs.REGISTRY_USERNAME }} + password: ${{ inputs.REGISTRY_TOKEN }} - name: Login to Docker.io Registry uses: https://git.kjan.de/actions/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ inputs.DOCKER_USERNAME }} + password: ${{ inputs.DOCKER_PASSWORD }} - name: Cache Docker layers uses: actions/cache@v4