Verified Commit 261ab4aa authored by kpcyrd's avatar kpcyrd
Browse files

Add gitlab pipeline to export a results json to gitlab pages

parent ebe5211e
Pipeline #10063 failed with stage
in 11 seconds
/reproducible.json
/public/
image: "archlinux:latest"
before_script:
- pacman-key --init
- pacman -Syu --needed --noconfirm python
pages:
script:
- ./export-json.py
artifacts:
paths:
- public
only:
- main
- schedules
#!/usr/bin/env python3
import json
import yaml
import os
with open('packages.yml') as f:
pkgs = yaml.safe_load(f.read())
os.makedirs('public', exist_ok=True)
with open('public/packages.json', 'w') as f:
json.dump(pkgs, f)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment