Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
16 KB
Referenced Files
None
Subscribers
None
diff --git a/.woodpecker/otp-develop-musl.yaml b/.woodpecker/otp-develop-musl.yaml
deleted file mode 100644
index aff52ee30..000000000
--- a/.woodpecker/otp-develop-musl.yaml
+++ /dev/null
@@ -1,81 +0,0 @@
-when:
- - event: push
- branch: ${CI_REPO_DEFAULT_BRANCH}
- path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
-
-matrix:
- platform:
- - linux/amd64
- - linux/arm64
-
-# This is needed for the when clauses below.
-# When the platform clause is fixed, this might not be needed anymore
-labels:
- platform: ${platform}
-
-variables:
- pleroma_build_cmds: &pleroma_build_cmds
- - echo "import 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}
- - mix release --path release
- artifacts_uploader_settings: &artifacts_uploader_settings
- user:
- from_secret: pleroma-ci-user
- password:
- from_secret: pleroma-ci-password
- owner: 'pleroma'
-
-steps:
- otp-develop-amd64-musl:
- image: docker.io/hexpm/elixir-amd64:1.17.3-erlang-27.3.4.2-alpine-3.22.1
- # when:
- # - platform: linux/amd64
- # does not work even though it should according to docs
- # https://github.com/woodpecker-ci/woodpecker/discussions/5367#discussioncomment-13901342
- when:
- - evaluate: platform == "linux/amd64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- commands:
- - apk add git build-base cmake file-dev openssl vips-dev zip
- - <<: *pleroma_build_cmds
- - zip -9rq pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl.zip release
-
- upload-artifacts-amd64-musl:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
- when:
- - evaluate: platform == "linux/amd64"
- settings:
- <<: *artifacts_uploader_settings
- package_name: pleroma-otp-${CI_REPO_DEFAULT_BRANCH}-amd64-musl
- package_version: ${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl
- file_source: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl.zip
- file_name: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl.zip
-
- otp-develop-arm64-musl:
- image: docker.io/hexpm/elixir-arm64:1.17.3-erlang-27.3.4.2-alpine-3.22.1
- when:
- - evaluate: platform == "linux/arm64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- commands:
- - apk add git build-base cmake file-dev openssl vips-dev zip
- - <<: *pleroma_build_cmds
- - zip -9rq pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl.zip release
-
- upload-artifacts-arm64-musl:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
- when:
- - evaluate: platform == "linux/arm64"
- settings:
- <<: *artifacts_uploader_settings
- package_name: pleroma-otp-${CI_REPO_DEFAULT_BRANCH}-arm64-musl
- package_version: ${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl
- file_source: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl.zip
- file_name: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl.zip
diff --git a/.woodpecker/otp-develop.yaml b/.woodpecker/otp-develop.yaml
deleted file mode 100644
index 623d1d846..000000000
--- a/.woodpecker/otp-develop.yaml
+++ /dev/null
@@ -1,83 +0,0 @@
-when:
- - event: push
- branch: ${CI_REPO_DEFAULT_BRANCH}
- path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
-
-matrix:
- platform:
- - linux/amd64
- - linux/arm64
-
-# This is needed for the when clauses below.
-# When the platform clause is fixed, this might not be needed anymore
-labels:
- platform: ${platform}
-
-variables:
- pleroma_build_cmds: &pleroma_build_cmds
- - echo "import 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}
- - mix release --path release
- artifacts_uploader_settings: &artifacts_uploader_settings
- user:
- from_secret: pleroma-ci-user
- password:
- from_secret: pleroma-ci-password
- owner: 'pleroma'
-
-steps:
- otp-develop-amd64:
- image: docker.io/hexpm/elixir-amd64:1.17.3-erlang-27.3.4.2-ubuntu-noble-20250716
- # when:
- # - platform: linux/amd64
- # does not work even though it should according to docs
- # https://github.com/woodpecker-ci/woodpecker/discussions/5367#discussioncomment-13901342
- when:
- - evaluate: platform == "linux/amd64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- DEBIAN_FRONTEND: noninteractive
- commands:
- - apt-get update && apt-get install -y cmake libmagic-dev libvips-dev erlang-dev git build-essential zip
- - <<: *pleroma_build_cmds
- - zip -9rq pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64.zip release
-
- upload-artifacts-amd64:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
- when:
- - evaluate: platform == "linux/amd64"
- settings:
- <<: *artifacts_uploader_settings
- package_name: pleroma-otp-${CI_REPO_DEFAULT_BRANCH}-amd64
- package_version: ${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64
- file_source: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64.zip
- file_name: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64.zip
-
- otp-develop-arm64:
- image: docker.io/hexpm/elixir-arm64:1.17.3-erlang-27.3.4.2-ubuntu-noble-20250716
- when:
- - evaluate: platform == "linux/arm64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- DEBIAN_FRONTEND: noninteractive
- commands:
- - apt-get update && apt-get install -y cmake libmagic-dev libvips-dev erlang-dev git build-essential zip
- - <<: *pleroma_build_cmds
- - zip -9rq pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64.zip release
-
- upload-artifacts-arm64:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
- when:
- - evaluate: platform == "linux/arm64"
- settings:
- <<: *artifacts_uploader_settings
- package_name: pleroma-otp-${CI_REPO_DEFAULT_BRANCH}-arm64
- package_version: ${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64
- file_source: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64.zip
- file_name: ./pleroma-${CI_REPO_DEFAULT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64.zip
diff --git a/.woodpecker/otp-stable-musl.yaml b/.woodpecker/otp-musl.yaml
similarity index 56%
rename from .woodpecker/otp-stable-musl.yaml
rename to .woodpecker/otp-musl.yaml
index 3a3d8bb53..87ab0b93a 100644
--- a/.woodpecker/otp-stable-musl.yaml
+++ b/.woodpecker/otp-musl.yaml
@@ -1,85 +1,99 @@
when:
+ - event: push
+ branch: ${CI_REPO_DEFAULT_BRANCH}
+ path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: push
branch: stable
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: tag
branch: stable
- event: manual
branch: stable
matrix:
platform:
- linux/amd64
- linux/arm64
# This is needed for the when clauses below.
# When the platform clause is fixed, this might not be needed anymore
labels:
platform: ${platform}
variables:
- pleroma_build_cmds: &pleroma_build_cmds
+ build_cmds: &build_cmds
+ - apk add git build-base cmake file-dev openssl vips-dev zip
- echo "import 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}
- mix release --path release
+ build_image_amd64: &build_image_amd64 docker.io/hexpm/elixir-amd64:1.17.3-erlang-27.3.4.2-alpine-3.22.1
+ build_image_arm64: &build_image_arm64 docker.io/hexpm/elixir-arm64:1.17.3-erlang-27.3.4.2-alpine-3.22.1
+ artifacts_uploader_image: &artifacts_uploader_image docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
artifacts_uploader_settings: &artifacts_uploader_settings
user:
from_secret: pleroma-ci-user
password:
from_secret: pleroma-ci-password
- owner: 'pleroma-test'
+ owner: 'pleroma'
+ env: &env
+ MIX_ENV: prod
+ VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
steps:
- otp-stable-amd64-musl:
- image: docker.io/hexpm/elixir-amd64:1.17.3-erlang-27.3.4.2-alpine-3.22.1
- # when:
- # - platform: linux/amd64
- # does not work even though it should according to docs
- # https://github.com/woodpecker-ci/woodpecker/discussions/5367#discussioncomment-13901342
+ otp-develop-amd64-musl:
+ image: *build_image_amd64
when:
- - evaluate: platform == "linux/amd64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- commands:
- - apk add git build-base cmake file-dev openssl vips-dev zip
- - <<: *pleroma_build_cmds
+ - evaluate: 'platform == "linux/amd64" && CI_COMMIT_BRANCH == "${CI_REPO_DEFAULT_BRANCH}"'
+ environment: *env
+ commands: &amd64_build
+ - <<: *build_cmds
- zip -9rq pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl.zip release
+ otp-stable-amd64-musl:
+ image: *build_image_amd64
+ when:
+ - evaluate: 'platform == "linux/amd64" && CI_COMMIT_BRANCH == "stable"'
+ environment: *env
+ commands: *amd64_build
+
+ otp-develop-arm64-musl:
+ image: *build_image_arm64
+ when:
+ - evaluate: 'platform == "linux/arm64" && CI_COMMIT_BRANCH == "${CI_REPO_DEFAULT_BRANCH}"'
+ environment: *env
+ commands: &arm64_build
+ - <<: *build_cmds
+ - zip -9rq pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl.zip release
+
+ otp-stable-arm64-musl:
+ image: *build_image_arm64
+ when:
+ - evaluate: 'platform == "linux/arm64" && CI_COMMIT_BRANCH == "stable"'
+ environment: *env
+ commands: *arm64_build
+
upload-artifacts-amd64-musl:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
+ image: *artifacts_uploader_image
when:
- evaluate: platform == "linux/amd64"
settings:
<<: *artifacts_uploader_settings
package_name: pleroma-otp-${CI_COMMIT_BRANCH}-amd64-musl
package_version: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl
file_source: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl.zip
file_name: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64-musl.zip
- otp-stable-arm64-musl:
- image: docker.io/hexpm/elixir-arm64:1.17.3-erlang-27.3.4.2-alpine-3.22.1
- when:
- - evaluate: platform == "linux/arm64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- commands:
- - apk add git build-base cmake file-dev openssl vips-dev zip
- - <<: *pleroma_build_cmds
- - zip -9rq pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl.zip release
-
upload-artifacts-arm64-musl:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
+ image: *artifacts_uploader_image
when:
- evaluate: platform == "linux/arm64"
settings:
<<: *artifacts_uploader_settings
package_name: pleroma-otp-${CI_COMMIT_BRANCH}-arm64-musl
package_version: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl
file_source: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl.zip
file_name: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64-musl.zip
diff --git a/.woodpecker/otp-stable.yaml b/.woodpecker/otp.yaml
similarity index 54%
rename from .woodpecker/otp-stable.yaml
rename to .woodpecker/otp.yaml
index 80bfc9f7e..533143769 100644
--- a/.woodpecker/otp-stable.yaml
+++ b/.woodpecker/otp.yaml
@@ -1,87 +1,100 @@
when:
+ - event: push
+ branch: ${CI_REPO_DEFAULT_BRANCH}
+ path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: push
branch: stable
path: [ "*.ex", "*.eex", "*.exs", "mix.lock", ".woodpecker/**" ]
- event: tag
branch: stable
- event: manual
branch: stable
matrix:
platform:
- linux/amd64
- linux/arm64
# This is needed for the when clauses below.
# When the platform clause is fixed, this might not be needed anymore
labels:
platform: ${platform}
variables:
- pleroma_build_cmds: &pleroma_build_cmds
+ build_cmds: &build_cmds
+ - apt-get update && apt-get install -y cmake libmagic-dev libvips-dev erlang-dev git build-essential zip
- echo "import 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}
- mix release --path release
+ build_image_amd64: &build_image_amd64 docker.io/hexpm/elixir-amd64:1.17.3-erlang-27.3.4.2-ubuntu-noble-20250716
+ build_image_arm64: &build_image_arm64 docker.io/hexpm/elixir-arm64:1.17.3-erlang-27.3.4.2-ubuntu-noble-20250716
+ artifacts_uploader_image: &artifacts_uploader_image docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
artifacts_uploader_settings: &artifacts_uploader_settings
user:
from_secret: pleroma-ci-user
password:
from_secret: pleroma-ci-password
- owner: 'pleroma-test'
+ owner: 'pleroma'
+ env: &env
+ MIX_ENV: prod
+ VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
+ DEBIAN_FRONTEND: noninteractive
steps:
- otp-stable-amd64:
- image: docker.io/hexpm/elixir-amd64:1.17.3-erlang-27.3.4.2-ubuntu-noble-20250716
- # when:
- # - platform: linux/amd64
- # does not work even though it should according to docs
- # https://github.com/woodpecker-ci/woodpecker/discussions/5367#discussioncomment-13901342
+ otp-develop-amd64:
+ image: *build_image_amd64
when:
- - evaluate: platform == "linux/amd64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- DEBIAN_FRONTEND: noninteractive
- commands:
- - apt-get update && apt-get install -y cmake libmagic-dev libvips-dev erlang-dev git build-essential zip
- - <<: *pleroma_build_cmds
+ - evaluate: 'platform == "linux/amd64" && CI_COMMIT_BRANCH == "${CI_REPO_DEFAULT_BRANCH}"'
+ environment: *env
+ commands: &amd64_build
+ - <<: *build_cmds
- zip -9rq pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64.zip release
+ otp-stable-amd64:
+ image: *build_image_amd64
+ when:
+ - evaluate: 'platform == "linux/amd64" && CI_COMMIT_BRANCH == "stable"'
+ environment: *env
+ commands: *amd64_build
+
+ otp-develop-arm64:
+ image: *build_image_arm64
+ when:
+ - evaluate: 'platform == "linux/arm64" && CI_COMMIT_BRANCH == "${CI_REPO_DEFAULT_BRANCH}"'
+ environment: *env
+ commands: &arm64_build
+ - <<: *build_cmds
+ - zip -9rq pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64.zip release
+
+ otp-stable-arm64:
+ image: *build_image_arm64
+ when:
+ - evaluate: 'platform == "linux/arm64" && CI_COMMIT_BRANCH == "stable"'
+ environment: *env
+ commands: *arm64_build
+
upload-artifacts-amd64:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
+ image: *artifacts_uploader_image
when:
- evaluate: platform == "linux/amd64"
settings:
<<: *artifacts_uploader_settings
package_name: pleroma-otp-${CI_COMMIT_BRANCH}-amd64
package_version: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64
file_source: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64.zip
file_name: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-amd64.zip
- otp-stable-arm64:
- image: docker.io/hexpm/elixir-arm64:1.17.3-erlang-27.3.4.2-ubuntu-noble-20250716
- when:
- - evaluate: platform == "linux/arm64"
- environment:
- MIX_ENV: prod
- VIX_COMPILATION_MODE: PLATFORM_PROVIDED_LIBVIPS
- DEBIAN_FRONTEND: noninteractive
- commands:
- - apt-get update && apt-get install -y cmake libmagic-dev libvips-dev erlang-dev git build-essential zip
- - <<: *pleroma_build_cmds
- - zip -9rq pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64.zip release
-
upload-artifacts-arm64:
- image: docker.io/woodpeckercommunity/plugin-gitea-package:0.5.0
+ image: *artifacts_uploader_image
when:
- evaluate: platform == "linux/arm64"
settings:
<<: *artifacts_uploader_settings
package_name: pleroma-otp-${CI_COMMIT_BRANCH}-arm64
package_version: ${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64
file_source: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64.zip
file_name: ./pleroma-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHA:0:8}-arm64.zip

File Metadata

Mime Type
text/x-diff
Expires
Sat, Oct 31, 7:11 AM (18 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1801146
Default Alt Text
(16 KB)

Event Timeline