Skip to content

Instantly share code, notes, and snippets.

@hauleth
Last active April 3, 2019 01:22
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 hauleth/1aa37e804991a43ddba872795d823fa9 to your computer and use it in GitHub Desktop.
Save hauleth/1aa37e804991a43ddba872795d823fa9 to your computer and use it in GitHub Desktop.
## Build
build:
stage: build
tags:
- elixir
script:
- eval $(ssh-agent -s)
- echo "$SSH_BUILD_KEY" | tr -d '\r' | ssh-add -
- git branch -f master HEAD
- mix edeliver build release --revision="$CI_BUILD_REF" --auto-version=revision
## Deploy
deploy:staging:
stage: deploy
environment: staging
tags:
- elixir
script:
- eval $(ssh-agent -s)
- echo "$SSH_DEPLOY_STAGING_KEY" | tr -d '\r' | ssh-add -
- mix edeliver deploy release to staging --version="$VERSION"
- mix edeliver stop staging
- mix edeliver start staging
- mix edeliver migrate staging
when: manual
@DmytroStepaniuk
Copy link

How do u check that proper version of edeliver exists on CI?

@allenwyma
Copy link

How do u check that proper version of edeliver exists on CI?

edeliver should be the latest version in your deps. you can just run mix deps.get to get that version that your mix lock file is pinned to.

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