Update docker/push/action.yaml

This commit is contained in:
Zakary Timson 2023-07-28 19:12:58 +00:00
parent 319e6b322e
commit 098d4bc843

View File

@ -28,4 +28,5 @@ runs:
run: |
TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g")
echo "${{inputs.registry_pass}}" | docker login -u "${{inputs.registry_user}}" --password-stdin "${{inputs.registry}}"
docker push "${{inputs.registry}}/${{inputs.image}}:$TAG"
REG=$(echo "${{inputs.registry}}" | sed -E "s%https?://%%gi")
docker push "$REG/${{inputs.image}}:$TAG"