From d449bb4b1f4a23b329454683e67d7d15eaf91cf7 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 20 Aug 2020 19:56:58 +0000 Subject: Added the HTTPS POST for a successful build to the unattended test build. --- profiles/52-54-00-12-34-56.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'profiles') diff --git a/profiles/52-54-00-12-34-56.py b/profiles/52-54-00-12-34-56.py index 6a3639c7..6e823360 100644 --- a/profiles/52-54-00-12-34-56.py +++ b/profiles/52-54-00-12-34-56.py @@ -1,4 +1,6 @@ -import archinstall, getpass +import archinstall +import json +import urllib.request # Unmount and close previous runs archinstall.sys_command(f'umount -R /mnt', surpress_errors=True) @@ -29,4 +31,11 @@ with archinstall.Filesystem(harddrive, archinstall.GPT) as fs: installation.user_create('anton', 'test') installation.user_set_pw('root', 'toor') - installation.add_AUR_support() \ No newline at end of file + installation.add_AUR_support() + + + conditions = {"profile" : "52-54-00-12-34-56", "status" : "successful"} + req = urllib.request.Request("https://archlinux.life/build/successful", + data=json.dumps(conditions).encode('utf8'), + headers={'content-type': 'application/json'}) + urllib.request.urlopen(req) \ No newline at end of file -- cgit v1.2.3-54-g00ecf