From 5cf2c955499d8c8b923c9db5c5883af96902b90d Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Fri, 28 Jul 2023 16:48:28 +0000 Subject: [PATCH] Update docker/action.yaml --- docker/action.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/action.yaml b/docker/action.yaml index 87d67b3..91a2a9b 100644 --- a/docker/action.yaml +++ b/docker/action.yaml @@ -5,15 +5,18 @@ inputs: registry: required: false type: string + default: $GITHUB_SERVER_URL registry_user: - required: true + required: false type: string + default: $GITHUB_ACTOR registry_pass: required: true type: string image: required: true type: string + default: $GITHUB_REPOSITORY tag: required: false type: string @@ -23,9 +26,7 @@ runs: steps: - name: Login to registry - run: | - REGISTRY=$([ -n "${{inputs.registry}}" ] && echo "${{inputs.registry}}" || echo "$GITHUB_SERVER_URL") \ - echo "${{inputs.registry_pass}}" | docker login -u "${{inputs.registry_user}}" --password-stdin "$REGISTRY" + run: echo "${{inputs.registry_pass}}" | docker login -u "${{inputs.registry_user}}" --password-stdin "${{inputs.registry}}" - uses: actions/checkout@v3