| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | # It assumes that the following things are installed: |
| 5 | 5 | # * curl |
| 6 | 6 | # * jq |
| 7 | # * cat |
| 7 | 8 | |
| 8 | 9 | set -x |
| 9 | 10 | set -e |
| ... | ... | @@ -12,17 +13,19 @@ VERSION="$1" |
| 12 | 13 | OAUTH_TOKEN="$2" |
| 13 | 14 | YML_FILE="tmp.yml" |
| 14 | 15 | |
| 15 | | echo "image: ubuntu/xenial" >> "$YML_FILE" |
| 16 | | echo "packages:" >> "$YML_FILE" |
| 17 | | echo " - s3cmd" >> "$YML_FILE" |
| 18 | | echo " - curl" >> "$YML_FILE" |
| 19 | | echo " - jq" >> "$YML_FILE" |
| 20 | | echo "secrets:" >> "$YML_FILE" |
| 21 | | echo " - 6c60aaee-92e7-4e7d-812c-114817689b4d" >> "$YML_FILE" |
| 22 | | echo "sources:" >> "$YML_FILE" |
| 23 | | echo " - https://github.com/ziglang/zig" >> "$YML_FILE" |
| 24 | | echo "tasks:" >> "$YML_FILE" |
| 25 | | echo " - build: cd zig && ./ci/srht/update_download_page $VERSION" >> "$YML_FILE" |
| 16 | cat <<EOF >"$YML_FILE" |
| 17 | image: alpine/edge |
| 18 | packages: |
| 19 | - py3-pip |
| 20 | - curl |
| 21 | - jq |
| 22 | secrets: |
| 23 | - 6c60aaee-92e7-4e7d-812c-114817689b4d |
| 24 | sources: |
| 25 | - https://github.com/ziglang/zig |
| 26 | tasks: |
| 27 | - build: cd zig && ./ci/srht/update_download_page $VERSION |
| 28 | EOF |
| 26 | 29 | |
| 27 | 30 | jq <$YML_FILE -sR '{ |
| 28 | 31 | "manifest": ., |