Skip to content

Instantly share code, notes, and snippets.

@russorat
Last active July 30, 2021 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russorat/11506d6ab8d08ae361329fb2dcf3076b to your computer and use it in GitHub Desktop.
Save russorat/11506d6ab8d08ae361329fb2dcf3076b to your computer and use it in GitHub Desktop.
# This is a basic workflow to help you get started with Actions
name: deploy-to-cloud
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Setup InfluxDB
uses: influxdata/influxdb-action@v3
with:
influxdb_version: latest
influxdb_start: false
# Runs a set of commands using the runners shell
- name: Deploys repo to cloud
env:
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }}
INFLUX_ORG: ${{ secrets.INFLUX_ORG }}
INFLUX_URL: ${{ secrets.INFLUX_URL }}
GITHUB_REPO: ${{ github.repository }}
GITHUB_BRANCH: ${{ github.ref }}
run: |
cd $GITHUB_WORKSPACE
chmod +x ./setup_v3.sh
./setup_v3.sh prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment