diff options
| author | Luke Hoersten <[email protected]> | 2026-07-26 16:05:40 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-07-26 16:05:40 -0500 |
| commit | a173d5c8f149b4dde505fd4ab5257fb4cbc6911e (patch) | |
| tree | 7e30b8ead4b75c609a87b5c4d93aa18e49179176 /pleroma | |
| parent | 1566ed593907c829827237aad924c3f527723218 (diff) | |
build roles: stage checkouts + artifacts under build_work_dir
Move every build role's working dir off /tmp (the SD card) to {{build_work_dir}},
which the playbook points at the SSD on the build host. nostr and pleroma stage
their artifacts inside their own build dirs so the shared work dir can't collide,
while preserving the archive top-level names (relayer, release) that the server
roles depend on.
Diffstat (limited to 'pleroma')
| -rw-r--r-- | pleroma/build/defaults/main.yaml | 2 | ||||
| -rw-r--r-- | pleroma/build/tasks/main.yaml | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pleroma/build/defaults/main.yaml b/pleroma/build/defaults/main.yaml index 2d16436..bc9be00 100644 --- a/pleroma/build/defaults/main.yaml +++ b/pleroma/build/defaults/main.yaml @@ -5,5 +5,5 @@ pleroma_elixir_version: "1.18.3" pleroma_erlang_otp_version: "25" # https://git.pleroma.social/pleroma/pleroma/releases pleroma_tar: "https://git.pleroma.social/pleroma/pleroma/archive/v{{pleroma_version}}.tar.gz" -pleroma_build_dir: "/tmp/pleroma" +pleroma_build_dir: "{{build_work_dir}}/pleroma" pleroma_srv_dir: "{{build_srv_dir}}" diff --git a/pleroma/build/tasks/main.yaml b/pleroma/build/tasks/main.yaml index ae3e35d..704c0a4 100644 --- a/pleroma/build/tasks/main.yaml +++ b/pleroma/build/tasks/main.yaml @@ -18,14 +18,14 @@ become: yes get_url: url: "https://github.com/elixir-lang/elixir/releases/download/v{{pleroma_elixir_version}}/elixir-otp-{{pleroma_erlang_otp_version}}.zip" - dest: "/tmp/elixir-{{pleroma_elixir_version}}.zip" + dest: "{{build_work_dir}}/elixir-{{pleroma_elixir_version}}.zip" force: false - name: install elixir become: yes unarchive: remote_src: yes - src: "/tmp/elixir-{{pleroma_elixir_version}}.zip" + src: "{{build_work_dir}}/elixir-{{pleroma_elixir_version}}.zip" dest: "/usr/local" creates: "/usr/local/bin/elixir" @@ -41,7 +41,7 @@ unarchive: remote_src: yes src: "{{pleroma_tar}}" - dest: "/tmp/" + dest: "{{build_work_dir}}/" creates: "{{pleroma_build_dir}}" - name: check if pleroma release exists @@ -76,13 +76,13 @@ copy: remote_src: yes src: "{{pleroma_build_dir}}/_build/prod/rel/pleroma/" - dest: "/tmp/release/" + dest: "{{pleroma_build_dir}}/release/" when: not build_file.stat.exists - name: create gz archive of pleroma release become: yes archive: - path: "/tmp/release" + path: "{{pleroma_build_dir}}/release" dest: "{{pleroma_srv_dir}}/pleroma-{{pleroma_version}}.tar.gz" format: "gz" when: not build_file.stat.exists |
