Skip to content

Instantly share code, notes, and snippets.

@samalba
Created December 15, 2020 20:14
Show Gist options
  • Save samalba/c7b467d31a5f424641a2c58b4742c992 to your computer and use it in GitHub Desktop.
Save samalba/c7b467d31a5f424641a2c58b4742c992 to your computer and use it in GitHub Desktop.
Blocklayer Gitlab-CI
staging blocklayer:
stage: staging
environment:
name: staging
image: blocklayer/bl-cli
script:
- bl --stack "staging" --env "staging" push "api"=. --api-key ${BLOCKLAYER_API_KEY} --no-color
except:
- master
preview blocklayer:
stage: preview
environment:
name: staging
image: blocklayer/bl-cli
script:
- bl --stack "staging" --env "preview" push "api"=. --api-key ${BLOCKLAYER_API_KEY} --no-color
only:
- master
production blocklayer:
stage: production
environment:
name: production
url: https://www.mydomain.com
image: blocklayer/bl-cli
script:
- bl --stack "staging" --env "production" push "api"=. --api-key ${BLOCKLAYER_API_KEY} --no-color
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment