prune lockfile
[akkoma] / .woodpecker / .release.yml
index e672c1251e1b26c7886efe033d2dac58aab9b6b4..535cdd65bdd9c168f7f58b24655f06962baffe7b 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:
@@ -37,8 +37,8 @@ pipeline:
       - *tag-build
       - mix deps.get --only prod
       - mix release --path release
-      - zip akkoma-${tag}.zip -r release
-      - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}.zip
+      - zip akkoma-amd64.zip -r release
+      - rclone copyto akkoma-amd64.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-amd64.zip
 
   musl:
     image: elixir:1.13-alpine
@@ -51,8 +51,9 @@ pipeline:
       - *clean
       - *setup-scw-s3
       - *setup-hex
+      - mix deps.clean --all
       - *tag-build
       - mix deps.get --only prod
       - mix release --path release
-      - zip akkoma-${tag}.zip -r release
-      - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}-musl.zip
+      - zip akkoma-amd64.zip -r release
+      - rclone copyto akkoma-amd64.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-amd64-musl.zip