4 POSTGRES_DB: pleroma_test
5 POSTGRES_USER: postgres
6 POSTGRES_PASSWORD: postgres
11 key: ${CI_COMMIT_REF_SLUG}
21 - mix local.hex --force
22 - mix local.rebar --force
33 - master@pleroma/pleroma
34 - develop@pleroma/pleroma
48 - name: lainsoykaf/postgres-with-rum
50 command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
55 - mix coveralls --trace --preload-modules
60 - name: lainsoykaf/postgres-with-rum
62 command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
69 - "mix ecto.migrate --migrations-path priv/repo/optional_migrations/rum_indexing/"
70 - mix test --trace --preload-modules
75 - mix format --check-formatted
81 - mix credo --strict --only=warnings,todo,fixme,consistency,readability
87 - master@pleroma/pleroma
88 - develop@pleroma/pleroma
90 - apk update && apk add openssh-client rsync
93 - echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
94 - eval $(ssh-agent -s)
95 - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
96 - rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" priv/static/doc/ "${SSH_USER_HOST_LOCATION}/${CI_COMMIT_REF_NAME}"
102 - apk update && apk add openssh-client git
105 name: review/$CI_COMMIT_REF_NAME
106 url: https://$CI_ENVIRONMENT_SLUG.pleroma.online/
107 on_stop: stop_review_app
114 - echo "$CI_ENVIRONMENT_SLUG"
116 - eval $(ssh-agent -s)
117 - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
118 - ssh-keyscan -H "pleroma.online" >> ~/.ssh/known_hosts
119 - (ssh -t dokku@pleroma.online -- apps:create "$CI_ENVIRONMENT_SLUG") || true
120 - ssh -t dokku@pleroma.online -- config:set "$CI_ENVIRONMENT_SLUG" APP_NAME="$CI_ENVIRONMENT_SLUG" APP_HOST="$CI_ENVIRONMENT_SLUG.pleroma.online" MIX_ENV=dokku
121 - (ssh -t dokku@pleroma.online -- postgres:create $(echo $CI_ENVIRONMENT_SLUG | sed -e 's/-/_/g')_db) || true
122 - (ssh -t dokku@pleroma.online -- postgres:link $(echo $CI_ENVIRONMENT_SLUG | sed -e 's/-/_/g')_db "$CI_ENVIRONMENT_SLUG") || true
123 - (ssh -t dokku@pleroma.online -- certs:add "$CI_ENVIRONMENT_SLUG" /home/dokku/server.crt /home/dokku/server.key) || true
124 - git push -f dokku@pleroma.online:$CI_ENVIRONMENT_SLUG $CI_COMMIT_SHA:refs/heads/master
130 - apk update && apk add openssh-client git
133 name: review/$CI_COMMIT_REF_NAME
136 - echo "$CI_ENVIRONMENT_SLUG"
138 - eval $(ssh-agent -s)
139 - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
140 - ssh-keyscan -H "pleroma.online" >> ~/.ssh/known_hosts
141 - ssh -t dokku@pleroma.online -- --force apps:destroy "$CI_ENVIRONMENT_SLUG"
142 - ssh -t dokku@pleroma.online -- --force postgres:destroy $(echo $CI_ENVIRONMENT_SLUG | sed -e 's/-/_/g')_db