2024-05-13 21:37:10 +05:30
|
|
|
steps:
|
|
|
|
test:
|
|
|
|
image: rust
|
|
|
|
when:
|
|
|
|
event: [push, pull_request, tag, deployment]
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
2024-05-18 20:49:45 +05:30
|
|
|
- VANIKAM_email_URL=smtp://admin:password@email:10025
|
2024-05-18 20:42:59 +05:30
|
|
|
- MAILDEV_URL=http://email:1080
|
2024-05-13 21:37:10 +05:30
|
|
|
commands:
|
|
|
|
# - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\
|
|
|
|
# - apt update && apt-get -y --no-install-recommends install nodejs tar gpg curl wget
|
|
|
|
- rustup toolchain install nightly
|
|
|
|
- rustup override set nightly
|
|
|
|
- rustup component add rustfmt
|
|
|
|
- rustup component add clippy
|
2024-05-18 19:40:06 +05:30
|
|
|
- export VANIKAM_server_COOKIE_SECRET="8190b05e070e1e2697ef6b436f2a2271d640dbd70dccf7827b5de932eef35d2e41d3"
|
2024-05-18 20:55:34 +05:30
|
|
|
- export VANIKAM_email_FROM="Vanikam Info <info@vanikam.app>"
|
|
|
|
- export VANIKAM_email_REPLY_TO="Vanikam Support <support@vanikam.app>"
|
2024-05-13 21:37:10 +05:30
|
|
|
- make db.migrate
|
|
|
|
- make lint
|
|
|
|
- make test
|
|
|
|
- make release
|
|
|
|
|
|
|
|
build_docker_img:
|
|
|
|
image: plugins/docker
|
|
|
|
when:
|
|
|
|
event: [pull_request]
|
|
|
|
settings:
|
|
|
|
dry_run: true
|
2024-05-14 23:30:34 +05:30
|
|
|
repo: libresolutions/vanikam
|
2024-05-13 21:37:10 +05:30
|
|
|
tags: latest
|
|
|
|
|
|
|
|
# build_and_publish_docker_img:
|
|
|
|
# image: plugins/docker
|
|
|
|
# when:
|
|
|
|
# event: [push, tag, deployment]
|
|
|
|
# settings:
|
|
|
|
# username: forgeflux
|
|
|
|
# password:
|
|
|
|
# from_secret: DOCKER_TOKEN
|
2024-05-14 23:30:34 +05:30
|
|
|
# repo: libresolutions/vanikam
|
2024-05-13 21:37:10 +05:30
|
|
|
# tags:
|
|
|
|
# latest
|
|
|
|
|
|
|
|
# build_publisher_docker_img:
|
|
|
|
# image: plugins/docker
|
|
|
|
# when:
|
|
|
|
# event: [push, tag, deployment]
|
|
|
|
# settings:
|
|
|
|
# dry_run: true
|
|
|
|
# dockerfile: scripts/publish-bins-docker
|
|
|
|
# purge: false
|
2024-05-14 23:30:34 +05:30
|
|
|
# repo: libresolutions/vanikam-publisher
|
2024-05-13 21:37:10 +05:30
|
|
|
# tags: latest
|
|
|
|
#
|
|
|
|
# publish_bins:
|
|
|
|
# image: rust
|
|
|
|
# when:
|
|
|
|
# event: [push, tag, deployment]
|
|
|
|
# commands:
|
|
|
|
# - apt update
|
|
|
|
# - apt-get -y --no-install-recommends install gpg tar curl wget
|
|
|
|
# - echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback
|
|
|
|
# - scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
|
|
|
|
# secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
|
|
|
|
#
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=password
|
2024-05-18 20:42:59 +05:30
|
|
|
|
|
|
|
email:
|
|
|
|
image: maildev/maildev:latest
|
|
|
|
environment:
|
|
|
|
- MAILDEV_SMTP_PORT=10025
|
|
|
|
- MAILDEV_INCOMING_USER=admin
|
|
|
|
- MAILDEV_INCOMING_PASS=password
|