Skip to content

altostra/altostra-orb

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

CircleCI + Altostra


Learn More View Docs


Altostra

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

Using

Setting up

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.

Pushing and Deploying

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"

Using Non-Node images

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

About

Altostra's CircleCI integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •