From 2d3c10e4fff650bf990df86747b1abeac4c084b8 Mon Sep 17 00:00:00 2001
From: FloatingGhost <hannah@coffee-and-dreams.uk>
Date: Sat, 11 Jun 2022 18:32:10 +0100
Subject: [PATCH] ensure releases don't collide

---
 .woodpecker/.release.yml |  3 ++-
 README.md                | 31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml
index 68a05e99d..800dd1ffb 100644
--- a/.woodpecker/.release.yml
+++ b/.woodpecker/.release.yml
@@ -21,7 +21,6 @@ pipeline:
     - SCW_ACCESS_KEY
     - SCW_SECRET_KEY
     - SCW_DEFAULT_ORGANIZATION_ID
-    group: release
     image: ${docker_prefix}elixir:1.13
     environment:
       MIX_ENV: prod
@@ -34,6 +33,7 @@ pipeline:
       - echo "import Mix.Config" > config/prod.secret.exs
       - mix local.hex --force
       - mix local.rebar --force
+      - mix deps.clean --all
       - mix deps.get --only prod
       - mkdir release
       - export PLEROMA_BUILD_BRANCH=$CI_COMMIT_BRANCH
@@ -62,6 +62,7 @@ pipeline:
       - echo "import Mix.Config" > config/prod.secret.exs
       - mix local.hex --force
       - mix local.rebar --force
+      - mix deps.clean --all 
       - mix deps.get --only prod
       - mkdir release
       - export PLEROMA_BUILD_BRANCH=${CI_COMMIT_BRANCH}
diff --git a/README.md b/README.md
index 25fde90b9..7dd7f1765 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,34 @@
+## Upgrading to Akkoma
+
+### From source
+
+```bash
+git remote set-url origin https://akkoma.dev/AkkomaGang/akkoma.git/
+git fetch origin
+git pull -r
+```
+
+Then compile, migrate and restart as usual.
+
+Then if you've done anything fancy to the frontend, you'll want to get the
+updates for that as well. This won't be the same for any two instances,
+so `https://akkoma.dev/AkkomaGang/pleroma-fe` is the repo you need.
+
+### From OTP
+
+```bash
+./bin/pleroma_ctl update --zip-url https://akkoma-updates.s3-website.fr-par.scw.cloud/develop/akkoma-amd64.zip
+./bin/pleroma_ctl migrate
+``` 
+
+Then restart. When updating in the future, can just use
+
+```bash
+./bin/pleroma_ctl update --branch develop
+```
+
+### Old readme follows
+
 <img src="https://git.pleroma.social/pleroma/pleroma/uploads/8cec84f5a084d887339f57deeb8a293e/pleroma-banner-vector-nopad-notext.svg" width="300px" />
 
 ## About