added default params to deployemnt

This commit is contained in:
didier amyot committed 2016-04-23 23:11:04 -04:00
1 parent 2a689dd20b
commit bc5a3ce364
2 files changed
+6 -1

No files matched your search

+4
View File
@@ -7,6 +7,10 @@ before_script:
pages:
stage: deploy
script:
- export SALT="salt_and_pepper"
- export KEY="qwerty"
- export PLAYER_LIST_LOCATION="api/players.json.spritz"
- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
- npm install
- node_modules/.bin/gulp prod
- node_modules/.bin/r.js -o build.js
+2 -1
View File
@@ -42,7 +42,8 @@ gulp.task('compile-results', function(){
var encryptFile = function(message){
var keyLengthInBytes = 128;
var stringKey = process.env.KEY || 'qwerty';
var salt = process.env.SALT || '';
var stringKey = salt + (process.env.KEY || 'qwerty');
var key = spritz.hash(stringKey, keyLengthInBytes);
var byteArrMessage = spritz.stringToUtf8ByteArray(message);
var cypher = spritz.encrypt(key, byteArrMessage);