Add web page publishing script
All checks were successful
OSCW Runner Container Build / OSCW-Runner-Container (push) Successful in 7m8s
All checks were successful
OSCW Runner Container Build / OSCW-Runner-Container (push) Successful in 7m8s
This commit is contained in:
14
files/webpage_publish
Normal file
14
files/webpage_publish
Normal 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/
|
Reference in New Issue
Block a user