Skip to content

Commit

Permalink
Publish a manifest.json #124
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarreira committed Nov 1, 2022
1 parent e00ab64 commit 53ff786
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,30 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- name: Set VERSION env
run: echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: generate manifest.json
env:
VERSION: ${{ env.VERSION }}
run: |
cat >manifest.json <<EOF
{
"SchemaVersion": "1.0",
"Metadata": {
"Name": "rpaasv2",
"Version": "${VERSION}"
},
"URLPerPlatform": {
"darwin/arm64": "https://github.com/tsuru/rpaas-operator/releases/download/v${VERSION}/rpaasv2_${VERSION}_Darwin_arm64.tar.gz",
"darwin/amd64": "https://github.com/tsuru/rpaas-operator/releases/download/v${VERSION}/rpaasv2_${VERSION}_Darwin_x86_64.tar.gz",
"linux/arm64": "https://github.com/tsuru/rpaas-operator/releases/download/v${VERSION}/rpaasv2_${VERSION}_Linux_arm64.tar.gz",
"linux/386": "https://github.com/tsuru/rpaas-operator/releases/download/v${VERSION}/rpaasv2_${VERSION}_Linux_i386.tar.gz",
"linux/amd64": "https://github.com/tsuru/rpaas-operator/releases/download/v${VERSION}/rpaasv2_${VERSION}_Linux_x86_64.tar.gz",
"windows/386": "https://github.com/tsuru/rpaas-operator/releases/download/v${VERSION}/rpaasv2_${VERSION}_Windows_i386.zip",
"windows/amd64": "https://github.com/tsuru/rpaas-operator/releases/download/v${VERSION}/rpaasv2_${VERSION}_Windows_x86_64.zip"
}
}
EOF
- uses: actions/setup-go@v2
with:
go-version: 1.18
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ tags
.history
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
# rpaas-operator binaries
bin/
bin/
# manifest.json generated during CI
manifest.json
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ archives:

checksum:
name_template: "checksums.txt"

release:
prerelease: auto
extra_files:
- glob: ./manifest.json

0 comments on commit 53ff786

Please sign in to comment.