ci: Update for new ruamel.yaml API
dustin/dustin.web/pipeline/head There was a failure building this commit Details

The old `safe_load` and similar PyYAML compatibility functions have been
removed from recent(-ish) versions of _ruamel.yaml_.
master
Dustin 2025-08-26 07:52:55 -05:00
parent 313bc6805e
commit 914ce34521
2 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
python3 -m pip install --user ruamel.yaml python3 -m pip install --user ruamel.yaml
python3 /dev/fd/3 < songquotes.yml > public/songquotes.json 3<<EOF python3 /dev/fd/3 < songquotes.yml > public/songquotes.json 3<<EOF
from ruamel.yaml import safe_load as load from ruamel.yaml import YAML
from json import dump from json import dump
import sys import sys
dump(load(sys.stdin), sys.stdout) yaml = YAML()
dump(yaml.load(sys.stdin), sys.stdout)
EOF EOF
tar -cJf dustin.web.tar.xz -C public . tar -cJf dustin.web.tar.xz -C public .

View File

@ -5,7 +5,7 @@ spec:
- name: zola - name: zola
image: git.pyrocufflink.net/containerimages/zola image: git.pyrocufflink.net/containerimages/zola
- name: python - name: python
image: docker.io/python:3.10 image: docker.io/python:3
command: command:
- python - python
args: args: