Skip to content

Instantly share code, notes, and snippets.

@stovak
Last active February 28, 2024 21:34
Show Gist options
  • Save stovak/3ac16eb8cc5d4648f89e42cee07f87c7 to your computer and use it in GitHub Desktop.
Save stovak/3ac16eb8cc5d4648f89e42cee07f87c7 to your computer and use it in GitHub Desktop.

CircleCI:

version: 2.1

jobs:
  build:
    docker:
      - image: circleci/node:10

    environment:
      TERMINUS_HOST: "api.pantheon.io"

    steps:
      - checkout
      # Add your build steps here

GitHub Actions:

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

Travis CI:

language: node_js

env:
  global:
    - TERMINUS_HOST="api.pantheon.io"

script:
  # Add your build script here

GitLab CI/CD:

variables:
  TERMINUS_HOST: "api.pantheon.io"

stages:
  - build

build_job:
  stage: build
  script:
    # Add your build script here

Jenkins:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment