Files
esh-pfi-infrastructure/playbooks/svos-releases/nh3-svos-d5e15c3-v0.0.27-stage.yaml
T

27 lines
2.0 KiB
YAML

# nh3-svos: STAGE SVOS v0.0.27 (d5e15c3) beside the live release. Installs into /opt/svos/releases/d5e15c3 and runs the
# new kernel's check-config against the live configuration. Does NOT switch current, stop or start anything.
# svos-dev's request (thread 01M5AH9A7QGJ018HNTSGKNGAA7): UI 0.0.32 (interface 0.0.9 + U23 v0.2); kernel 0.0.27 is a
# version bump; everything else carried from a83c223. Built from the LOCAL tag before the push; the publish
# (nh3-svos-d5e15c3-v0.0.27.yaml) first needs origin's v0.0.27 to name the same commit.
steps:
- name: Private staging dir
shell: install -d -m 0700 /tmp/svos-stage-d5e15c3
- {name: stage release, upload: {src: /tmp/claude-1000/-home-lkraven-development-eshpfi-management/e0be18fd-0734-4786-b933-904f0a74d2a2/scratchpad/svos-d5e15c3/svos-release-d5e15c3.tar.gz, dest: /tmp/svos-stage-d5e15c3/release.tar.gz, mode: "0644"}}
- {name: stage uv, upload: {src: /home/lkraven/bin/uv, dest: /tmp/svos-stage-d5e15c3/uv, mode: "0755"}}
- {name: stage installer, upload: {src: /tmp/claude-1000/-home-lkraven-development-eshpfi-management/e0be18fd-0734-4786-b933-904f0a74d2a2/scratchpad/svos-d5e15c3/install-release.py, dest: /tmp/svos-stage-d5e15c3/install-release.py, mode: "0644"}}
- name: Verify staged hashes
shell: cd /tmp/svos-stage-d5e15c3 && printf '%s %s\n' 6d3da96eae8838840559b39569b5433725febaae43c0f4228f314c151d99d8a4 release.tar.gz 83aa128da93e168283ed32cf75cd819fe17b135b3fc1f7ccb3c912eec198d9fb uv | sha256sum -c -
changed_when: "false"
- name: Install release d5e15c3 beside the live one (current NOT switched)
sudo: true
shell: python3 /tmp/svos-stage-d5e15c3/install-release.py
creates: /opt/svos/releases/d5e15c3/apps-env/pyvenv.cfg
verify:
- name: New kernel 0.0.27 accepts the live configuration as it is
sudo: true
shell: runuser -u svc-svos -- /opt/svos/releases/d5e15c3/kernel-env/bin/svos-kernel check-config --data-root /var/lib/svos
changed_when: "false"
- name: current still points at the live release
shell: readlink /opt/svos/current
changed_when: "false"