Skip to content

Instantly share code, notes, and snippets.

@sasaken555
Created December 30, 2018 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sasaken555/20932bbecdb50e49024fb3a9b8773130 to your computer and use it in GitHub Desktop.
Save sasaken555/20932bbecdb50e49024fb3a9b8773130 to your computer and use it in GitHub Desktop.
Deploy shellscrpit to work with IBM Cloud Functions (OpenWhisk) resources via Serverless Framework.
#!/bin/bash
echo ">>> Deploy Started..."
echo ">>> LogIn to IBM Cloud...."
ibmcloud --version
ibmcloud login --apikey $API_KEY -a api.ng.bluemix.net -o "$ORG" -s "$SPACE"
ibmcloud fn property get --auth # *IMPORTANT* Create/Update .wskprops file.
echo ">>> Install Serverless packages globally..."
npm install -g serverless serverless-openwhisk
echo ">>> Install dependencies..."
npm install
echo ">>> Deploy functions/resources via Serverless..."
serverless deploy -v
echo ">>> Deploy functions/resources Successfully!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment