Actions: Fix clone
Some checks failed
Build Container / Build Container (push) Failing after 2s

This commit is contained in:
Zakary Timson 2025-04-17 11:31:33 -04:00
parent 064cb62168
commit 8bf3bd68da

View File

@ -15,7 +15,7 @@ jobs:
REGISTRY="$(echo "${{github.server_url}}" | sed -E 's|https?://||')" REGISTRY="$(echo "${{github.server_url}}" | sed -E 's|https?://||')"
DOCKER_HUB=$([ -n "${{secrets.DOCKER_HUB_USER}}" ] && [ -n "${{secrets.DOCKER_HUB_TOKEN}}" ] && [ -n "${{secrets.DOCKER_HUB_IMAGE}}" ] && echo "true" || echo "false") DOCKER_HUB=$([ -n "${{secrets.DOCKER_HUB_USER}}" ] && [ -n "${{secrets.DOCKER_HUB_TOKEN}}" ] && [ -n "${{secrets.DOCKER_HUB_IMAGE}}" ] && echo "true" || echo "false")
git clone -b "${{github.ref_name}}" "${{github.token}}@${REGISTRY}/${{github.repository}}.git" . git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
VERSION="$(grep -oP '(?<="version": ")[^"]+' package.json)" VERSION="$(grep -oP '(?<="version": ")[^"]+' package.json)"
docker login -u "${{github.repository_owner}}" -p "${{secrets.DEPLOY_TOKEN}}" "$REGISTRY" docker login -u "${{github.repository_owner}}" -p "${{secrets.DEPLOY_TOKEN}}" "$REGISTRY"