2021-01-13 09:18:30 +01:00
|
|
|
image: alpine/edge
|
2020-12-15 13:48:27 +01:00
|
|
|
packages:
|
|
|
|
- elixir
|
2021-01-13 09:18:30 +01:00
|
|
|
- postgresql
|
2021-01-12 09:36:22 +01:00
|
|
|
- postgresql-contrib
|
2021-01-13 09:18:30 +01:00
|
|
|
- docker
|
|
|
|
artifacts:
|
2021-01-18 12:12:52 +01:00
|
|
|
- management/_build/prod/rel/recycledcloud.tar.gz
|
2020-12-15 13:48:27 +01:00
|
|
|
sources:
|
|
|
|
- https://code.recycled.cloud/e-Durable/management.git
|
|
|
|
tasks:
|
|
|
|
- setup: |
|
2021-01-13 09:18:30 +01:00
|
|
|
sudo service postgresql setup
|
|
|
|
sudo service postgresql start
|
|
|
|
sudo service docker start
|
2020-12-15 13:48:27 +01:00
|
|
|
cd management
|
|
|
|
mix local.hex --force
|
|
|
|
mix local.rebar --force
|
|
|
|
mix deps.get
|
|
|
|
- build: |
|
|
|
|
cd management
|
2021-01-13 09:18:30 +01:00
|
|
|
MIX_ENV=test mix deps.compile
|
|
|
|
MIX_ENV=test mix compile
|
2020-12-15 13:48:27 +01:00
|
|
|
- test: |
|
|
|
|
cd management
|
2021-02-03 13:18:18 +01:00
|
|
|
sudo docker pull code.ungleich.ch:5050/fnux/e-durable-oci-images/openldap-playground:latest
|
2021-01-13 09:18:30 +01:00
|
|
|
CALL_CONTAINER_RUNTIME_AS_ROOT=1 LDAP_WAIT_LOOPS=100 MIX_ENV=test mix test
|
|
|
|
- release: |
|
|
|
|
cd management
|
2021-01-13 17:54:38 +01:00
|
|
|
MIX_ENV=prod mix compile
|
|
|
|
MIX_ENV=prod mix phx.digest
|
2021-01-13 09:18:30 +01:00
|
|
|
MIX_ENV=prod mix release
|
2021-01-18 09:45:07 +01:00
|
|
|
cd _build/prod/rel
|
|
|
|
tar cvzf recycledcloud.tar.gz recycledcloud/
|