Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from cloudfoundry/sha1
Browse files Browse the repository at this point in the history
Add sha1 sum to release
  • Loading branch information
johha authored Dec 13, 2021
2 parents 94f6463 + 411a8a9 commit c894f6d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/bosh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ jobs:
run: bosh vendor-package golang-1.17-linux ./src/golang-release

- name: Build BOSH release tarball
id: build_bosh_release
run: |
set -euo pipefail
VERSION=${{ steps.tag_version.outputs.new_version }}
RELEASE_FILE=go-cf-api-boshrelease-"$VERSION".tgz
bosh create-release --final --version "$VERSION" --tarball "go-cf-api-boshrelease-$VERSION.tgz"
bosh create-release --final --version "$VERSION" --tarball "$RELEASE_FILE"
echo "::set-output name=sha1::$(sha1sum "$RELEASE_FILE" | cut -d ' ' -f 1)"
- name: Push Tag
id: push_tag
uses: mathieudutour/[email protected]
Expand All @@ -56,7 +59,17 @@ jobs:
with:
files: ./go-cf-api-boshrelease-*.tgz
fail_on_unmatched_files: true
body: ${{ steps.tag_version.outputs.changelog }}
body: |
${{ steps.tag_version.outputs.changelog }}
## Deployment
```YAML
releases:
name: go-cf-api
version: ${{ steps.tag_version.outputs.new_version }}
url: https://github.com/cloudfoundry/go-cf-api-release/releases/download/${{ steps.tag_version.outputs.new_tag }}/go-cf-api-boshrelease-${{ steps.tag_version.outputs.new_version }}.tgz
sha1: ${{ steps.build_bosh_release.outputs.sha1 }}
```
tag_name: ${{ steps.tag_version.outputs.new_tag }}


0 comments on commit c894f6d

Please sign in to comment.