src.nth.io/

summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-04-25 19:54:49 -0500
committerLuke Hoersten <[email protected]>2026-04-25 19:54:49 -0500
commit6a8cb5f10557733f1521035d57a191b12832d634 (patch)
tree159e102eb03c7c04e7f51844fd4da136b9185fdd /bin
parent5d5b976e379487e8b1eccc4fc96d5920a930ff0f (diff)
Build all roles from source with versioned artifacts
- Add pleroma/build role to compile from source (OTP binaries no longer published) - Install Elixir 1.18.3 manually on Ubuntu Noble (ships 1.14, needs 1.15+) - Standardize all build roles to produce versioned .tar.gz artifacts - Add version defaults to all server roles (bin, dendrite, nostr/relayer) - Switch server roles from get_url to unarchive for .tar.gz installs - Add build_srv_dir variable to all build roles - Deploy pleroma styles.json so custom FE themes appear in picker - Fix pleroma OTP install: version check, root ownership, auto-cleanup old releases - Fix pleroma config: log level :warn -> :warning, remove availableStyles - Add wait_for grafana readiness before dashboard install - Set minecraft ops changed_when: false
Diffstat (limited to 'bin')
-rw-r--r--bin/build/defaults/main.yaml2
-rw-r--r--bin/build/tasks/main.yaml13
-rw-r--r--bin/server/defaults/main.yaml1
-rw-r--r--bin/server/tasks/main.yaml9
4 files changed, 14 insertions, 11 deletions
diff --git a/bin/build/defaults/main.yaml b/bin/build/defaults/main.yaml
index 06e07d9..2c1d7d9 100644
--- a/bin/build/defaults/main.yaml
+++ b/bin/build/defaults/main.yaml
@@ -4,4 +4,4 @@ bin_version: "2.0.1"
# https://github.com/w4/bin/releases
bin_tar: "https://github.com/w4/bin/archive/refs/tags/v{{bin_version}}.tar.gz"
bin_build_dir: "/tmp/bin-{{bin_version}}"
-bin_srv_dir: "/var/www/build/"
+bin_srv_dir: "{{build_srv_dir}}"
diff --git a/bin/build/tasks/main.yaml b/bin/build/tasks/main.yaml
index 44c722e..f340cb5 100644
--- a/bin/build/tasks/main.yaml
+++ b/bin/build/tasks/main.yaml
@@ -13,7 +13,7 @@
- name: check if bin build exists
stat:
- path: "{{bin_build_dir}}/target/release/bin"
+ path: "{{bin_srv_dir}}/bin-{{bin_version}}.tar.gz"
register: build_file
- name: build bin
@@ -29,9 +29,10 @@
mode: "0755"
state: "directory"
-- name: copy bin to build server dir
+- name: create gz archive of bin
become: yes
- copy:
- remote_src: yes
- src: "{{bin_build_dir}}/target/release/bin"
- dest: "{{bin_srv_dir}}/bin"
+ archive:
+ path: "{{bin_build_dir}}/target/release/bin"
+ dest: "{{bin_srv_dir}}/bin-{{bin_version}}.tar.gz"
+ format: "gz"
+ when: not build_file.stat.exists
diff --git a/bin/server/defaults/main.yaml b/bin/server/defaults/main.yaml
index 4862a99..7834ced 100644
--- a/bin/server/defaults/main.yaml
+++ b/bin/server/defaults/main.yaml
@@ -1,4 +1,5 @@
---
+bin_version: "2.0.1"
bin_user: "pastebin"
bin_port: 8820
diff --git a/bin/server/tasks/main.yaml b/bin/server/tasks/main.yaml
index 2b7634e..451c7bd 100644
--- a/bin/server/tasks/main.yaml
+++ b/bin/server/tasks/main.yaml
@@ -6,10 +6,11 @@
- name: install bin binary
become: yes
- get_url:
- url: "{{bin_url}}"
- dest: "/usr/local/bin/bin"
- mode: "0755"
+ unarchive:
+ remote_src: yes
+ src: "{{bin_url}}"
+ dest: "/usr/local/bin/"
+ changed_when: false
notify: restart service
- name: install systemd service