Skip to content

Instantly share code, notes, and snippets.

@orestesgaolin
Last active April 20, 2020 12:50
Show Gist options
  • Save orestesgaolin/3fea6e30713aff83e754dce93f1890e7 to your computer and use it in GitHub Desktop.
Save orestesgaolin/3fea6e30713aff83e754dce93f1890e7 to your computer and use it in GitHub Desktop.

In your console

key=$( base64 ./key.json )

echo $key

On codemagic:

  1. Add new env variable KEY eqaul to above
  2. Add new env variable KEY_PATH e.g. ./lib/key.json
  3. In Post-clone script add:
#!/usr/bin/env sh
set -e

echo $KEY | base64 --decode > $KEY_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment