Update docker/push/action.yaml

This commit is contained in:
Zakary Timson 2023-07-28 18:09:22 +00:00
parent e7d98a9f50
commit 96253dd288

View File

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