From c62c486350b79f69182df82157cbe53ab6a44648 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Fri, 24 Nov 2023 03:54:18 +0000 Subject: [PATCH] Update docker/push/action.yaml --- docker/push/action.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docker/push/action.yaml b/docker/push/action.yaml index 331f401..9288e4b 100644 --- a/docker/push/action.yaml +++ b/docker/push/action.yaml @@ -6,6 +6,16 @@ inputs: type: string required: false default: ${{github.server_url}} + user: + type: string + required: false + description: Docker user + default: ${{github.repository_owner}} + pass: + type: string + required: false + description: User password + default: ${{secrets.DEPLOY_TOKEN}} name: type: string required: false @@ -25,4 +35,6 @@ runs: uses: docker://docker with: entrypoint: docker - args: push "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}" + args: | + login -u "${{inputs.user}}" --password "${{inputs.pass}}" "${{env.URL}}" && + docker push "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"