Skip to content

Instantly share code, notes, and snippets.

@princefishthrower
Created February 1, 2021 12:40
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 princefishthrower/f672cd1842268ffe6206db19e9682720 to your computer and use it in GitHub Desktop.
Save princefishthrower/f672cd1842268ffe6206db19e9682720 to your computer and use it in GitHub Desktop.
pipelines:
branches:
staging:
- step:
name: Copy Staging Environment (.env.staging.json) to .env.json
script:
- cp /src/env/.env.staging.json /src/env/.env.json
- curl -X POST -H 'Content-type: application/json' --data '{"text":"Staging environment copied into environment!"}' YOUR_WEBHOOK_URL_HERE
master:
- step:
name: Copy Production Environment (.env.production.json) to .env.json
script:
- cp /src/env/.env.production.json /src/env/.env.json
- curl -X POST -H 'Content-type: application/json' --data '{"text":"Production environment copied into environment!"}' YOUR_WEBHOOK_URL_HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment