removed debug, fixed deployment env
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 9s

This commit is contained in:
2026-02-01 19:06:40 +01:00
parent 4fa2be1351
commit 53795cf5cd
2 changed files with 1 additions and 4 deletions

View File

@@ -38,4 +38,4 @@ jobs:
SSH_KNOWN_HOSTS: ${{ vars.SSH_KNOWN_HOSTS }} SSH_KNOWN_HOSTS: ${{ vars.SSH_KNOWN_HOSTS }}
DEPLOYMENT_HOST: ${{ vars.DEPLOYMENT_HOST }} DEPLOYMENT_HOST: ${{ vars.DEPLOYMENT_HOST }}
DEPLOYMENT_PATH: ${{ vars.DEPLOYMENT_PATH }} DEPLOYMENT_PATH: ${{ vars.DEPLOYMENT_PATH }}
APP_VERSION: ${{ vars.GITHUB_REF_NAME }} APP_VERSION: ${{ env.GITHUB_REF_NAME }}

View File

@@ -12,13 +12,10 @@ if [ -z "${APP_VERSION}" ]; then
APP_VERSION=${VERSIONINPUT} APP_VERSION=${VERSIONINPUT}
fi fi
fi fi
echo "Version: ${APP_VERSION}" >&2
# Get project commit id and URL # Get project commit id and URL
COMMIT_ID=$(git log HEAD --oneline | awk '{print $1}' | head -n1) COMMIT_ID=$(git log HEAD --oneline | awk '{print $1}' | head -n1)
COMMIT_URL="$(git remote get-url origin | sed 's/\.git$//g;s/:/\//;s/git@/https:\/\//')/commit/${COMMIT_ID}" COMMIT_URL="$(git remote get-url origin | sed 's/\.git$//g;s/:/\//;s/git@/https:\/\//')/commit/${COMMIT_ID}"
echo "Commit ID: ${COMMIT_ID}" >&2
echo "Commit URL: ${COMMIT_URL}" >&2
# Get the theme used and its commit id and URL # Get the theme used and its commit id and URL
THEME=$(cat hugo.yaml | grep "theme:" | awk '{print $2}' | sed 's/"//g') THEME=$(cat hugo.yaml | grep "theme:" | awk '{print $2}' | sed 's/"//g')