Fix environ 2
This commit is contained in:
@@ -15,8 +15,6 @@ if [ -f /run/secrets/KEY_PRIVATE ]; then
|
||||
chmod 400 /run/secrets/KEY_*
|
||||
PASSWORD="$(cat "/run/secrets/KEY_PASSWORD")"
|
||||
PRIVATE="$(cat "/run/secrets/KEY_PRIVATE")"
|
||||
|
||||
GIT_TOKEN="$(cat "/run/secrets/GIT_TOKEN")"
|
||||
# Really should be able to just read from the private path, but for some reason ssh-add fails when using the actual path
|
||||
# But works when you cat the path into another file and then load it
|
||||
# Or cat the file and pipe it in through stdin
|
||||
@@ -33,6 +31,10 @@ else
|
||||
echo "Secret not defined!"
|
||||
fi
|
||||
|
||||
if [ -f /run/secrets/GIT_TOKEN ]; then
|
||||
export GIT_TOKEN="$(cat "/run/secrets/GIT_TOKEN")"
|
||||
fi
|
||||
|
||||
# Rsync files over, do not use the mtimes as they are wrong due to docker shenanigans
|
||||
# Use the .gitignore as a filter to not remove any files generated by previous runs
|
||||
rsync -rlpgoDz --delete --checksum --filter=':- .gitignore' ./ /website-cached/source
|
||||
|
||||
Reference in New Issue
Block a user