Created
December 15, 2020 20:14
-
-
Save samalba/c7b467d31a5f424641a2c58b4742c992 to your computer and use it in GitHub Desktop.
Blocklayer Gitlab-CI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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