Files
esh-pfi-infrastructure/playbooks/svos-releases/nh3-svos-9a0eec8-v0.0.23-stage.yaml
T

25 lines
1.9 KiB
YAML

# nh3-svos: STAGE SVOS v0.0.23 (9a0eec8) beside the live release: kernel 0.0.23 (a version bump), app-judge 0.0.2 (U22
# explain), app-interface 0.0.8 (U22 summaries), UI 0.0.27; everything else carried from 2f29d0d. Does NOT switch current,
# stop or start anything. svos-dev thread 01M59P4Z1VJ4WHJB0N8N1P743K. The cutover is nh3-svos-9a0eec8-v0.0.23.yaml.
steps:
- name: Private staging dir
shell: install -d -m 0700 /tmp/svos-stage-9a0eec8
- {name: stage release, upload: {src: /tmp/claude-1000/-home-lkraven-development-eshpfi-management/e0be18fd-0734-4786-b933-904f0a74d2a2/scratchpad/svos-9a0eec8/svos-release-9a0eec8.tar.gz, dest: /tmp/svos-stage-9a0eec8/release.tar.gz, mode: "0644"}}
- {name: stage uv, upload: {src: /home/lkraven/bin/uv, dest: /tmp/svos-stage-9a0eec8/uv, mode: "0755"}}
- {name: stage installer, upload: {src: /tmp/claude-1000/-home-lkraven-development-eshpfi-management/e0be18fd-0734-4786-b933-904f0a74d2a2/scratchpad/svos-9a0eec8/install-release.py, dest: /tmp/svos-stage-9a0eec8/install-release.py, mode: "0644"}}
- name: Verify staged hashes
shell: cd /tmp/svos-stage-9a0eec8 && printf '%s %s\n' 8e10f7092f372b480e33b844d9c3de7d3996399a01ca5c63e0dab4ccdca7af63 release.tar.gz 83aa128da93e168283ed32cf75cd819fe17b135b3fc1f7ccb3c912eec198d9fb uv | sha256sum -c -
changed_when: "false"
- name: Install release 9a0eec8 beside the live one (current NOT switched)
sudo: true
shell: python3 /tmp/svos-stage-9a0eec8/install-release.py
creates: /opt/svos/releases/9a0eec8/apps-env/pyvenv.cfg
verify:
- name: New kernel 0.0.23 accepts the live configuration as it is
sudo: true
shell: runuser -u svc-svos -- /opt/svos/releases/9a0eec8/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"