Add web page publishing script
All checks were successful
OSCW Runner Container Build / OSCW-Runner-Container (push) Successful in 7m8s

This commit is contained in:
2023-11-30 23:17:27 +01:00
parent 8a146d6441
commit cb59223d22
2 changed files with 18 additions and 0 deletions

14
files/webpage_publish Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
SOURCE="${1}"
if [ ${GITHUB_ACTIONS} ] ; then
[ -z ${CI_COMMIT_REF} ] && CI_COMMIT_REF="${GITHUB_REF}"
fi
echo "Publishing CI/CD artifacts for '${CI_COMMIT_REF}'"
echo "$OSCW_ARTIFACTS_USERKEY" | base64 -d > ~/artifacts.key
chmod 600 ~/artifacts.key
scp -o StrictHostKeyChecking=no -i ~/artifacts.key ${SOURCE} $OSCW_ARTIFACTS_USERNAME@$OSCW_ARTIFACTS_HOSTNAME:webpage/