upgrade oban to v11 (#84)
authorfloatingghost <hannah@coffee-and-dreams.uk>
Mon, 18 Jul 2022 10:48:49 +0000 (10:48 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Mon, 18 Jul 2022 10:48:49 +0000 (10:48 +0000)
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/84

.woodpecker/.release.yml
priv/repo/migrations/20220718102634_upgrade_oban_to_v11.exs [new file with mode: 0644]

index e672c1251e1b26c7886efe033d2dac58aab9b6b4..18f206a6b7188f0d776fbabcb4a57e4f63173464 100644 (file)
@@ -18,7 +18,7 @@ variables:
       - refs/tags/stable-*  
   - &tag-build 'export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"} && export PLEROMA_BUILD_BRANCH=$BUILD_TAG'
 
-  - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix) && (rm scaleway-cli || true) && (mix deps.clean --all || true)"
+  - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix) && (rm scaleway-cli || true)"
 
 
 pipeline:
@@ -51,6 +51,7 @@ pipeline:
       - *clean
       - *setup-scw-s3
       - *setup-hex
+      - mix deps.clean --all
       - *tag-build
       - mix deps.get --only prod
       - mix release --path release
diff --git a/priv/repo/migrations/20220718102634_upgrade_oban_to_v11.exs b/priv/repo/migrations/20220718102634_upgrade_oban_to_v11.exs
new file mode 100644 (file)
index 0000000..eb9c498
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.UpgradeObanToV11 do
+  use Ecto.Migration
+
+  def up, do: Oban.Migrations.up(version: 11)
+
+  def down, do: Oban.Migrations.down(version: 11)
+end