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