version: 2.1
jobs:
build:
docker:
- image: circleci/node:10
environment:
TERMINUS_HOST: "api.pantheon.io"
steps:
- checkout
# Add your build steps here
name: CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
TERMINUS_HOST: "api.pantheon.io"
steps:
- uses: actions/checkout@v2
# Add your build steps here
language: node_js
env:
global:
- TERMINUS_HOST="api.pantheon.io"
script:
# Add your build script here
variables:
TERMINUS_HOST: "api.pantheon.io"
stages:
- build
build_job:
stage: build
script:
# Add your build script here
pipeline {
agent any
environment {
TERMINUS_HOST = "api.pantheon.io"
}
stages {
stage('Build') {
steps {
// Add your build steps here
}
}
}
}
This environment variable will be available to your CI job during execution and whenever terminus executes commands, it will execute the command against the new API.