ensure mix clean

This commit is contained in:
FloatingGhost 2022-07-27 23:29:34 +01:00
parent 2796a9acaf
commit 38cefaebd9

View file

@ -29,6 +29,7 @@ variables:
- &tag-build "export BUILD_TAG=$${CI_COMMIT_TAG:-\"$CI_COMMIT_BRANCH\"} && export PLEROMA_BUILD_BRANCH=$BUILD_TAG" - &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)" - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
- &mix-clean "mix deps.clean --all && mix clean"
services: services:
postgres: postgres:
@ -126,6 +127,7 @@ pipeline:
- echo "import Config" > config/prod.secret.exs - echo "import Config" > config/prod.secret.exs
- *setup-hex - *setup-hex
- *tag-build - *tag-build
- *mix-clean
- mix deps.get --only prod - mix deps.get --only prod
- mix release --path release - mix release --path release
- zip akkoma-amd64.zip -r release - zip akkoma-amd64.zip -r release
@ -149,7 +151,7 @@ pipeline:
- apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip imagemagick - apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip imagemagick
- *clean - *clean
- *setup-hex - *setup-hex
- mix deps.clean --all - *mix-clean
- *tag-build - *tag-build
- mix deps.get --only prod - mix deps.get --only prod
- mix release --path release - mix release --path release