Update docker/login/action.yaml

This commit is contained in:
Zakary Timson 2023-11-24 04:29:05 +00:00
parent eb4aed3f23
commit 7feea3bd69

View File

@ -35,10 +35,4 @@ runs:
- name: Docker Login
uses: docker://docker
with:
entrypoint: docker
args: -v ./:/root/.docker/ docker login -u "${{inputs.user}}" --password "${{inputs.pass}}" "${{env.URL}}"
- name: Push
uses: docker://docker
with:
entrypoint: docker
args: -v .:/root/.docker/ push "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
args: /bin/sh -c "docker login -u ${{inputs.user}} -p ${{inputs.pass}} ${{env.URL}} && docker push ${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"