AdamT / elixir-cd-demo

continuous deployment demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WIP demo of using docker containers (since at the time of writing semaphoreci uses elixir v1.8 adn erlang 21) to run tests and build releases with elixir v1.9 and erlang 22.

To keep the tests fast (the whole default pipeline finishes in ~40 seconds), I'm using a custom alpine elixir image which weighs little and is downloaded in five seconds. It's based on elixir:1.9-alpine but with some dependencies that semaphoreci's utilities like cache use (lftp, for example) installed.

The release is then built using a debian-based elixir image with node and yarn installed. The release is then pushed to a VM running ubuntu 18.04, so far it's been working fine. This takes about a minute.

About

continuous deployment demo


Languages

Language:Elixir 68.8%Language:CSS 24.5%Language:JavaScript 3.3%Language:HTML 3.2%Language:Shell 0.2%