Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Continuous Deployment for Open Source projects

Continuous Deployment for Open Source projects

Open Source projects are a good way to get visibility and share knowledge with the community. However, you can't get those benefits until you publish your projects. The purpose of this talk is to show you how to publish your projects and create a continuous deployment pipeline.

The example repository of the presentation is: https://github.com/Angelmmiguel/rock-the-open-source

Ángel M

June 14, 2017
Tweet

More Decks by Ángel M

Other Decks in Programming

Transcript

  1. Static apps and sites • Sites for our projects •

    Browser apps with vue, react... • Full Stack apps that use external services. Ex. Firebase.
  2. Github pages # Generate deploy key ssh-keygen -t rsa -b

    4096 -C "email" # deploy.pub deploy
  3. language: node_js node_js: - "7" cache: yarn install: - yarn

    install - yarn global add surge now Github Pages (.travis.yml)
  4. jobs: include: # ... - stage: publish script: - yarn

    build - ./deploy.sh Github pages (.travis.yml)
  5. jobs: include: # ... - stage: publish script: - yarn

    build - surge --project ./build --domain rock-the-open-source.surge.sh Surge.sh (.travis.yml)
  6. Now