Compare commits
77 commits
Author | SHA1 | Date | |
---|---|---|---|
42dbd3da8a | |||
b99c21036f | |||
cd9ef12239 | |||
113b5e1435 | |||
5aeebeca67 | |||
b33449db0c | |||
a634e2ae46 | |||
1b98f064e2 | |||
b53e841b69 | |||
25e90f7048 | |||
b3b042e2f1 | |||
f0b392bdc3 | |||
850b2fc5dd | |||
db41d9d495 | |||
b6ffe1bb58 | |||
1047f66acc | |||
171dc66cd1 | |||
79cdca426a | |||
d8fe467288 | |||
af40d15983 | |||
8e0233b713 | |||
521c04fb67 | |||
290300c346 | |||
f2efb163c4 | |||
a687003bb6 | |||
fc25f5c5df | |||
e322d3b791 | |||
59e51c0594 | |||
bd1826dc21 | |||
0fa82d87fe | |||
c2b7e726b1 | |||
a38ce61c7b | |||
d2fb85ece4 | |||
24405cc0f3 | |||
7b252352ea | |||
ab2971b02e | |||
e307871a20 | |||
6228bdf5f4 | |||
5763628d9d | |||
297ef04903 | |||
6251961a79 | |||
4267bbe115 | |||
fe21c86669 | |||
cfdbff8f7a | |||
6e2b4c011d | |||
6323f71ddc | |||
02bd76702f | |||
9f1069ae8e | |||
14fc242df3 | |||
79eb5450ec | |||
782ac20678 | |||
18b46e1e89 | |||
044d4b308f | |||
8a3db96bb3 | |||
04960706f7 | |||
d97ecd1bde | |||
c00b63e1aa | |||
071e1ddfef | |||
efb01fca52 | |||
d22573d293 | |||
19a21ecedd | |||
497fcee3a8 | |||
9691d4374c | |||
488d7ff2e2 | |||
f9370d10dd | |||
950838eec9 | |||
f32471494a | |||
3c89369ef6 | |||
6294e5a485 | |||
96a3689659 | |||
9bca63e93e | |||
7685851b12 | |||
2e4c076446 | |||
5bf5e8d032 | |||
cfda90f6a1 | |||
c064eaf93a | |||
b74d5b6662 |
3 changed files with 48 additions and 53 deletions
62
.drone.yml
62
.drone.yml
|
@ -23,46 +23,14 @@ steps:
|
||||||
from_secret: DOCKERHUB_USERNAME
|
from_secret: DOCKERHUB_USERNAME
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKERHUB_PASSWORD
|
from_secret: DOCKERHUB_PASSWORD
|
||||||
cache_from: "glenux/service-gotosocial:latest_${DRONE_BRANCH/\\//-}"
|
cache_from: "glenux/service-gotosocial:${DRONE_BRANCH/\\//-}_latest"
|
||||||
repo: glenux/service-gotosocial
|
repo: glenux/service-gotosocial
|
||||||
tags: "${DRONE_COMMIT_SHA:0:8}"
|
tags:
|
||||||
|
- "${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
- "${DRONE_BRANCH/\\//-}_latest"
|
||||||
|
- "latest"
|
||||||
purge: false
|
purge: false
|
||||||
|
|
||||||
- name: publish:commit_branch
|
|
||||||
image: plugins/docker
|
|
||||||
# volumes:
|
|
||||||
# - name: cache
|
|
||||||
# path: /stupid
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: DOCKERHUB_USERNAME
|
|
||||||
password:
|
|
||||||
from_secret: DOCKERHUB_PASSWORD
|
|
||||||
cache_from: "glenux/service-gotosocial:latest_${DRONE_BRANCH/\\//-}"
|
|
||||||
repo: glenux/service-gotosocial
|
|
||||||
tags: "latest_${DRONE_BRANCH/\\//-}"
|
|
||||||
purge: false
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- "master"
|
|
||||||
- "develop"
|
|
||||||
- "feature/*"
|
|
||||||
|
|
||||||
- name: publish:latest
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: DOCKERHUB_USERNAME
|
|
||||||
password:
|
|
||||||
from_secret: DOCKERHUB_PASSWORD
|
|
||||||
cache_from: "glenux/service-gotosocial:latest_${DRONE_BRANCH/\\//-}"
|
|
||||||
repo: glenux/service-gotosocial
|
|
||||||
tags: latest
|
|
||||||
purge: false
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
|
||||||
- name: deploy:dokku
|
- name: deploy:dokku
|
||||||
image: alpine
|
image: alpine
|
||||||
when:
|
when:
|
||||||
|
@ -76,23 +44,25 @@ steps:
|
||||||
SSH_PRIVATE_KEY:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: SSH_PRIVATE_KEY
|
from_secret: SSH_PRIVATE_KEY
|
||||||
commands:
|
commands:
|
||||||
- echo $SSH_USER
|
- export SSH_TARGET="$SSH_USER@$SSH_HOST"
|
||||||
- echo $SSH_HOST
|
- set -x
|
||||||
|
- echo "$SSH_TARGET"
|
||||||
|
- echo $SSH_USER | wc -c
|
||||||
|
- echo $SSH_HOST | wc -c
|
||||||
- echo $SSH_PRIVATE_KEY
|
- echo $SSH_PRIVATE_KEY
|
||||||
- apk update && apk add openssh-client
|
- apk update && apk add openssh-client
|
||||||
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||||
- echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/deploy_key
|
- echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/deploy_key
|
||||||
- chmod 600 ~/.ssh/deploy_key
|
- chmod 600 ~/.ssh/deploy_key
|
||||||
|
- ssh-keygen -f ~/.ssh/deploy_key -y > ~/.ssh/deploy_key.pub
|
||||||
|
- "cat ~/.ssh/deploy_key.pub | cut -f3 -d' '"
|
||||||
|
- ssh -o StrictHostKeyChecking=no -i ~/.ssh/deploy_key $SSH_TARGET ps:stop social
|
||||||
- ssh -o StrictHostKeyChecking=no
|
- ssh -o StrictHostKeyChecking=no
|
||||||
-i ~/.ssh/deploy_key
|
-i ~/.ssh/deploy_key
|
||||||
"$SSH_USER@$SSH_HOST"
|
$SSH_USER@$SSH_HOST
|
||||||
ps:stop social
|
|
||||||
- ssh -o StrictHostKeyChecking=no
|
|
||||||
-i ~/.ssh/deploy_key
|
|
||||||
"$SSH_USER@$SSH_HOST"
|
|
||||||
git:from-image social
|
git:from-image social
|
||||||
"glenux/service-gotosocial:${DRONE_COMMIT_SHA:0:8}"
|
"glenux/service-gotosocial:${DRONE_BRANCH/\\//-}_${DRONE_COMMIT_SHA:0:8}"
|
||||||
#
|
#
|
||||||
- echo "SUCCESS"
|
- echo "SUCCESS"
|
||||||
|
|
||||||
# volumes:
|
# volumes:
|
||||||
|
|
17
Dockerfile
17
Dockerfile
|
@ -1,7 +1,10 @@
|
||||||
# FROM superseriousbusiness/gotosocial:latest
|
# FROM superseriousbusiness/gotosocial:0.11.0
|
||||||
# FROM superseriousbusiness/gotosocial:0.5.0-rc2
|
# FROM superseriousbusiness/gotosocial:0.12.2
|
||||||
# FROM superseriousbusiness/gotosocial:0.7.0
|
# FROM superseriousbusiness/gotosocial:0.13.1
|
||||||
FROM superseriousbusiness/gotosocial:0.7.1
|
# FROM superseriousbusiness/gotosocial:0.14.2
|
||||||
|
# FROM superseriousbusiness/gotosocial:0.15.0
|
||||||
|
# FROM superseriousbusiness/gotosocial:0.16.0
|
||||||
|
# FROM superseriousbusiness/gotosocial:0.17.0
|
||||||
|
# FROM superseriousbusiness/gotosocial:0.17.4
|
||||||
|
# FROM superseriousbusiness/gotosocial:0.18.0
|
||||||
|
FROM superseriousbusiness/gotosocial:0.18.3
|
||||||
|
|
22
README.md
22
README.md
|
@ -3,3 +3,25 @@
|
||||||
|
|
||||||
# GotoSocial
|
# GotoSocial
|
||||||
|
|
||||||
|
dokku config:set social --no-restart GTS_ACCOUNTS_REGISTRATION_OPEN=false
|
||||||
|
dokku config:set social --no-restart GTS_ADVANCED_RATE_LIMIT_REQUESTS=0
|
||||||
|
dokku config:set social --no-restart GTS_ADVANCED_THROTTLING_MULTIPLIER=32
|
||||||
|
dokku config:set social --no-restart GTS_ADVANCED_THROTTLING_RETRY_AFTER=120s
|
||||||
|
dokku config:set social --no-restart GTS_CONTACT=glenux
|
||||||
|
dokku config:set social --no-restart GTS_DB_ADDRESS=exampledbhost
|
||||||
|
dokku config:set social --no-restart GTS_DB_DATABASE=exampledb
|
||||||
|
dokku config:set social --no-restart GTS_DB_PASSWORD=example
|
||||||
|
dokku config:set social --no-restart GTS_DB_PORT=5432
|
||||||
|
dokku config:set social --no-restart GTS_DB_TLS_CA_CERT=
|
||||||
|
dokku config:set social --no-restart GTS_DB_TLS_MODE=disable
|
||||||
|
dokku config:set social --no-restart GTS_DB_TYPE=postgres
|
||||||
|
dokku config:set social --no-restart GTS_DB_USER=postgres
|
||||||
|
dokku config:set social --no-restart GTS_EMAIL=admin@example.com
|
||||||
|
dokku config:set social --no-restart GTS_HOST=example.com
|
||||||
|
dokku config:set social --no-restart GTS_INSTANCE_EXPOSE_PUBLIC_TIMELINE=true
|
||||||
|
dokku config:set social --no-restart GTS_LETSENCRYPT_EMAIL_ADDRESS=admin@example.com
|
||||||
|
dokku config:set social --no-restart GTS_LETSENCRYPT_ENABLED=false
|
||||||
|
dokku config:set social --no-restart GTS_MEDIA_REMOTE_CACHE_DAYS=3
|
||||||
|
dokku config:set social --no-restart GTS_TRUSTED_PROXIES=127.0.0.1/32,172.17.0.1,::1
|
||||||
|
dokku config:set social --no-restart GTS_USERNAME=admin
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue