Update docker/push/action.yaml
This commit is contained in:
parent
319e6b322e
commit
098d4bc843
@ -28,4 +28,5 @@ 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.registry}}/${{inputs.image}}:$TAG"
|
REG=$(echo "${{inputs.registry}}" | sed -E "s%https?://%%gi")
|
||||||
|
docker push "$REG/${{inputs.image}}:$TAG"
|
||||||
|
Loading…
Reference in New Issue
Block a user