From 3cbc401fe0c0fc2da167ae2b1acd0f145cc293ba Mon Sep 17 00:00:00 2001 From: floatingghost Date: Mon, 18 Jul 2022 10:48:49 +0000 Subject: [PATCH] upgrade oban to v11 (#84) Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/84 --- .woodpecker/.release.yml | 3 ++- .../repo/migrations/20220718102634_upgrade_oban_to_v11.exs | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 priv/repo/migrations/20220718102634_upgrade_oban_to_v11.exs diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index e672c1251..18f206a6b 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -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 index 000000000..eb9c4986c --- /dev/null +++ b/priv/repo/migrations/20220718102634_upgrade_oban_to_v11.exs @@ -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