run on tag
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Sat, 11 Jun 2022 17:12:48 +0000 (18:12 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sat, 11 Jun 2022 17:12:48 +0000 (18:12 +0100)
.woodpecker/.lint.yml
.woodpecker/.release.yml
.woodpecker/.test.yml

index d4f6576a3e6aa2b6781e1bdf021351a6f7459eed..0bac90d7367df2dae7ded9b8d2c0088dd73f8e14 100644 (file)
@@ -7,4 +7,4 @@ pipeline:
     - mix format --check-formatted
     when:
       event:
-      - tag
+      - push
index 82ef6b88ac14dff695587429ce445fd4dafd0c91..68a05e99d555509fc7eee3cd59967abf815dbfd1 100644 (file)
@@ -11,17 +11,12 @@ matrix:
   include:
   - tag: amd64
     docker_prefix: ""
-  - tag: arm64
-    docker_prefix: arm64v8/
-  - tag: arm
-    docker_prefix: arm32v7/ 
-    
 
 pipeline:
   glibc:
     when:
       event:
-        - push
+        - tag
     secrets:
     - SCW_ACCESS_KEY
     - SCW_SECRET_KEY
@@ -50,7 +45,10 @@ pipeline:
     when:
       event:
         - tag
-
+    secrets:
+    - SCW_ACCESS_KEY
+    - SCW_SECRET_KEY
+    - SCW_DEFAULT_ORGANIZATION_ID
     group: release
     image: ${docker_prefix}elixir:1.13-alpine
     environment:
@@ -62,6 +60,8 @@ pipeline:
       - 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.get --only prod
       - mkdir release
       - export PLEROMA_BUILD_BRANCH=${CI_COMMIT_BRANCH}
index e06a4d54e6b42cc6f334d55985c7c17bf99eda30..cef7436433bc540d05854968ef5d93385af6a9b7 100644 (file)
@@ -10,7 +10,7 @@ pipeline:
     image: pleromaforkci/ci-base:${ELIXIR_VERSION}
     when:
       event:
-      - tag
+      - push
     environment:
       MIX_ENV: test
     commands:
@@ -24,7 +24,7 @@ pipeline:
     image: pleromaforkci/ci-base:${ELIXIR_VERSION}
     when:
       event:
-      - tag
+      - push
     environment:
       MIX_ENV: test
       POSTGRES_DB: pleroma_test