Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Gitlab deploys #3560

Closed
amingilani opened this issue Oct 23, 2016 · 4 comments
Closed

Gitlab deploys #3560

amingilani opened this issue Oct 23, 2016 · 4 comments

Comments

@amingilani
Copy link

Related to #227

Just setup a 5 node cluster, and I'll be moving all my production apps over in the next few days. I must ask though, I love Github but is there a way for me to deploy with Gitlab?

@amingilani amingilani changed the title Gitlab? Gitlab deploys Oct 23, 2016
@josephglanville
Copy link
Contributor

I think right now the best way to do this is to use your CI system to do the deployments after running your tests. I think Gitlab CI would be capable of this, using either the shell or Docker runners.

If there is a hook system you could look at https://github.com/lmars/flynn-webhook-deploy and see if it can be modified to suit your purposes.

@MBrouns
Copy link

MBrouns commented Oct 27, 2016

I've been working on deploying to Flynn from gitlab and used Gitlab CI to great success. My CI step looks like this:

deploy to staging:
  environment: staging
  stage: deploy
  image: docker:git
  script:
   - L=/usr/local/bin/flynn && curl -sSL -A "`uname -sp`" https://dl.flynn.io/cli | zcat >$L && chmod +x $L
   - flynn cluster add -p $FLYNN_TLS_PIN $FLYNN_CLUSTER_NAME $FLYNN_CONTROLLER_URL $FLYNN_CONTROLLER_KEY --git-url=$FLYNN_GIT_URL
   - flynn -a APP remote add staging
   - git push staging HEAD:master
  when: manual

At some point in time I'll make a docker image containing the flynn-cli preinstalled but as it is very fast to install I'm okay with keeping it like this for now

@titanous titanous closed this as completed Nov 3, 2016
@hadifarnoud
Copy link

@MBrouns that's cool! did you write a tutorial somewhere?

@MBrouns
Copy link

MBrouns commented Jun 13, 2018

No I didn't unfortunately and I'm not working at the same company anymore either so it's hard to go back and see the full setup.
I do think the above step should contain about everything you need to get started though. If you need help with anything specific, just let me know!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants