Integrate Altostra projects into your CircleCI workflows. Use Altostra to accelerate serverless applications development in a no-code environment.
To use this orb, sign up for a free account at Altostra.
Click to learn more
First, add an env variable named ALTO_API_KEY to your project environment and set it's value to your Altostra API Token.
The altostra-orb/setup
step will use this variable to set up your connection to Altostra.
To deploy a project, use altostra-orb
and provide the instance name and the environment:
version: 2.1
orbs:
altostra-orb: altostra/altostra-orb@x.y #enter latest version
jobs:
build:
docker:
- image: circleci/node:12.13
working_directory: ~/repo
steps:
- checkout
# setup the Altostra CLI with your api-token
- altostra-orb/setup
- run:
name: NPM install
command: npm install
- altostra-orb/deploy:
instance-name: "myInstance"
env-name: "Production"
Or, you can push an image of the project:
version: 2.1
orbs:
altostra-orb: altostra/altostra-orb@x.y #enter latest version
jobs:
build:
docker:
- image: circleci/node:12.13
working_directory: ~/repo
steps:
- checkout
# setup the Altostra CLI with your api-token
- altostra-orb/setup
- run:
name: NPM install
command: npm install
- altostra-orb/push:
version: "v1.2.3-myVer"
and then deploy it:
- altostra-orb/deploy-version:
image-name: "v1.2.3-myVer"
instance-name: "myInstance"
env-name: "Production"
If you're using an image that doesn't contain NPM installed (like python images),
You'll need to manually install NPM to use the Altostra CLI. The easiest way is to use the circleci/node
orb to install NPM:
version: 2.1
orbs:
altostra-orb: altostra/altostra-orb@x.y #enter latest version
node: circleci/node@4.1.0
jobs:
build:
docker:
- image: circleci/python:latest
working_directory: ~/repo
steps:
- checkout
- node/install #Installing node
# setup the Altostra CLI with your api-token
- altostra-orb/setup
- run:
name: NPM install
command: npm install
- altostra-orb/deploy:
instance-name: "myInstance"
env-name: "Production"
You can read more about using specific node versions and other settings at the circleci/node
documentation page