ci: Update for new ruamel.yaml API
dustin/dustin.web/pipeline/head This commit looks good
Details
dustin/dustin.web/pipeline/head This commit looks good
Details
The old `safe_load` and similar PyYAML compatibility functions have been removed from recent(-ish) versions of _ruamel.yaml_.
parent
2ec8465252
commit
deb86460fe
|
@ -1,9 +1,10 @@
|
|||
python3 -m pip install --user ruamel.yaml
|
||||
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
|
||||
import sys
|
||||
dump(load(sys.stdin), sys.stdout)
|
||||
yaml = YAML()
|
||||
dump(yaml.load(sys.stdin), sys.stdout)
|
||||
EOF
|
||||
|
||||
tar -cJf dustin.web.tar.xz -C public .
|
||||
|
|
|
@ -5,7 +5,7 @@ spec:
|
|||
- name: zola
|
||||
image: git.pyrocufflink.net/containerimages/zola
|
||||
- name: python
|
||||
image: docker.io/python:3.10
|
||||
image: docker.io/python:3
|
||||
command:
|
||||
- python
|
||||
args:
|
||||
|
|
Loading…
Reference in New Issue