Created
December 30, 2018 16:14
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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