Skip to content

Instantly share code, notes, and snippets.

@kuon
Created July 23, 2016 12:09
Show Gist options
  • Save kuon/940492902bfa0d133edf73f8354d6769 to your computer and use it in GitHub Desktop.
Save kuon/940492902bfa0d133edf73f8354d6769 to your computer and use it in GitHub Desktop.
SECRET=`cat config/prod-staging.secret.exs`
local _prod_secret_path="/home/builder/prod.secret.exs"
if [ "$TARGET_MIX_ENV" = "prod" ]; then
__sync_remote "
printf '%s\n' '$SECRET' > '$BUILD_AT/config/prod.secret.exs'
"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment