Fixed build
Some checks failed
Build and publish / Build Container (push) Failing after 3s

This commit is contained in:
2025-12-27 14:14:01 -05:00
parent 6cc3d5eb00
commit d6857bd8e3

View File

@@ -15,7 +15,7 @@ jobs:
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
DOCKER_HUB=$([ -n "${{secrets.DOCKER_HUB_USER}}" ] && [ -n "${{secrets.DOCKER_HUB_TOKEN}}" ] && [ -n "${{secrets.DOCKER_HUB_IMAGE}}" ] && echo "true" || echo "false")
REGISTRY="$(echo "${{github.server_url}}" | sed -E 's|https?://||')"
VERSION="$(cat VERSION)"
VERSION="$(cat server/package.json | grep version | grep -Eo '[0-9][[:alnum:]\.\/\-]+')"
docker login -u "${{github.repository_owner}}" -p "${{secrets.DEPLOY_TOKEN}}" "$REGISTRY"
if [ "$DOCKER_HUB" = "true" ]; then docker login -u "${{secrets.DOCKER_HUB_USER}}" -p "${{secrets.DOCKER_HUB_TOKEN}}" docker.io; fi