Merge branch 'deploy_docs_pipeline' into develop

https://gitlab.com/soapbox-pub/soapbox-fe/-/merge_requests/191
loading-indicator-on-tls^2
Alex Gleason 2020-08-30 13:50:21 -05:00
commit 965a8ede7d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 20 dodań i 7 usunięć

Wyświetl plik

@ -14,6 +14,7 @@ stages:
- lint - lint
- test - test
- build - build
- deploy-docs
before_script: before_script:
- yarn - yarn
@ -39,6 +40,19 @@ build-production:
paths: paths:
- static - static
deploy-docs:
stage: deploy-docs
image: python:3.8-alpine
before_script:
- apk add curl
script:
- curl -X POST -F"token=$CI_JOB_TOKEN" -F'ref=master' https://gitlab.com/api/v4/projects/15685485/trigger/pipeline
only:
refs:
- develop
changes:
- docs/*
# Supposed to fail when translations are outdated, instead always passes # Supposed to fail when translations are outdated, instead always passes
# #
# i18n: # i18n:

Wyświetl plik

@ -10,13 +10,12 @@ To update Soapbox FE via the command line, do the following:
``` ```
# Download the build. # Download the build.
curl -L https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/v(latest.version.here)/download?job=build-production -o soapbox-fe.zip curl -L https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/v(latest.version.here)/download?job=build-production -o soapbox-fe.zip
# Remove all the current Soapbox FE build in Pleroma's instance directory. # Remove all the current Soapbox FE build in Pleroma's instance directory.
sudo rm -R /opt/pleroma/instance/static/packs rm -R /opt/pleroma/instance/static/packs
sudo rm /opt/pleroma/instance/static/index.html rm /opt/pleroma/instance/static/index.html
sudo rm -R /opt/pleroma/instance/static/sounds rm -R /opt/pleroma/instance/static/sounds
# Unzip the new build to Pleroma's instance directory. # Unzip the new build to Pleroma's instance directory.
busybox unzip soapbox-fe.zip -o -d /opt/pleroma/instance busybox unzip soapbox-fe.zip -o -d /opt/pleroma/instance
@ -26,11 +25,11 @@ busybox unzip soapbox-fe.zip -o -d /opt/pleroma/instance
You can also update Soapbox using [Sandia Mesa's updater bash script for Soapbox FE](https://code.sandiamesa.com/traboone/soapbox-update). You can also update Soapbox using [Sandia Mesa's updater bash script for Soapbox FE](https://code.sandiamesa.com/traboone/soapbox-update).
First, download the updater script if you haven't yet: ``curl -O https://code.sandiamesa.com/traboone/soapbox-update/raw/branch/master/soapbox-update.sh`` First, download the updater script if you haven't yet: ``sudo -Hu pleroma wget -P /var/lib/pleroma https://code.sandiamesa.com/traboone/soapbox-update/raw/branch/master/soapbox-update.sh -N``
Then, set the permissions of the updater script so that it can be executed: ``chmod u+x soapbox-update.sh`` Then, set the permissions of the updater script so that it can be executed: ``chmod u+x /var/lib/pleroma/soapbox-update.sh``
Finally, run ``sudo ./soapbox-update.sh``. Finally, go to the Pleroma user's directory ``cd /var/lib/pleroma`` and then run ``sudo -Hu pleroma ./soapbox-update.sh``.
## After updating Soapbox ## After updating Soapbox