Fix activity being passed to objec_to_search_data
[akkoma] / .woodpecker / .release.yml
index 1790ebe81aade52376f1c1bb814926a58c3a7e7e..28043aa655d5792964178589cdebf90fb1aa7a16 100644 (file)
@@ -16,7 +16,9 @@ pipeline:
   glibc:
     when:
       event:
-        - tag
+        - push
+      branch:
+        - develop
     secrets:
     - SCW_ACCESS_KEY
     - SCW_SECRET_KEY
@@ -44,7 +46,9 @@ pipeline:
   musl:
     when:
       event:
-        - tag
+        - push
+      branch:
+        - develop
     secrets:
     - SCW_ACCESS_KEY
     - SCW_SECRET_KEY
@@ -55,19 +59,20 @@ pipeline:
       MIX_ENV: prod
     commands:
       - apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip
+      - rm -rf release || true
+      - rm -rf _build || true
+      - rm -rf /root/.mix
+      - rm scaleway-cli || true
       - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
       - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
       - chmod +x scaleway-cli
       - ./scaleway-cli object config install type=rclone
-      - 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=develop
-      - rm -rf release || true
-      - rm -rf _build || true
       - mix release --path release
+      - export PLEROMA_BUILD_BRANCH=develop
       - zip akkoma-${tag}.zip -r release
-      - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$CI_COMMIT_BRANCH/akkoma-${tag}.zip
+      - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/develop/akkoma-${tag}-musl.zip