Add generation of announcements tables (#1355)

* Parse announcements from issues

* Minor fix

* Minor fix

* Reworked

* Minor fix

* Fix env variable name
This commit is contained in:
Vladimir Safonkin
2020-08-06 15:12:04 +03:00
committed by GitHub
parent 0f6fba462a
commit 75ac0436ed
7 changed files with 31 additions and 40 deletions

View File

@@ -26,7 +26,8 @@
"github_feed_token": null,
"run_validation_diskspace": "false",
"go_default": "1.14",
"go_versions": "1.14"
"go_versions": "1.14",
"announcements": "{{env `ANNOUNCEMENTS`}}"
},
"sensitive-variables": ["client_secret", "github_feed_token"],
"builders": [
@@ -91,11 +92,6 @@
"source": "{{template_dir}}/scripts/helpers",
"destination": "{{user `helper_script_folder`}}"
},
{
"type": "file",
"source": "{{template_dir}}/announcements.md",
"destination": "{{user `helper_script_folder`}}/announcements.md"
},
{
"type": "file",
"source": "{{template_dir}}/scripts/installers",
@@ -109,7 +105,8 @@
"environment_vars": [
"IMAGE_VERSION={{user `image_version`}}",
"METADATA_FILE={{user `metadata_file`}}",
"HELPER_SCRIPTS={{user `helper_script_folder`}}"
"HELPER_SCRIPTS={{user `helper_script_folder`}}",
"ANNOUNCEMENTS={{user `announcements`}}"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},