Skip to content

Instantly share code, notes, and snippets.

@hauleth hauleth/.gitlab-ci.yml
Last active Apr 3, 2019

Embed
What would you like to do?
## 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

This comment has been minimized.

Copy link

commented Dec 13, 2017

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

@HangingClowns

This comment has been minimized.

Copy link

commented Apr 3, 2019

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
You can’t perform that action at this time.