Skip to content

Commit

Permalink
Updated release workflow (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Jul 6, 2022
1 parent 86be271 commit f10c664
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
release_name: Release ${{ github.ref }}
body: |
This release has the following changes:
- Interval Options.
- README Updates.
draft: false
prerelease: false

Expand Down Expand Up @@ -56,12 +56,12 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
go-version: '1.18'

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

- name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@v0.3.0
with:
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
env GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o $FILE github.com/devops-kung-fu/hinge
env:
FILE: build/hinge-${{ steps.get_version.outputs.VERSION }}-${{ matrix.os }}-${{ matrix.arch }}

- name: Upload SBoM
run: |
curl \
Expand All @@ -106,7 +106,7 @@ jobs:
FILE: sbom.json

- name: Upload amd64 Non-Windows
if: matrix.os != 'windows' && matrix .arch == 'amd64'
if: matrix.os != 'windows' && matrix.arch == 'amd64'
run: |
curl \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
Expand Down
12 changes: 6 additions & 6 deletions hinge-sbom.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"bomFormat": "CycloneDX",
"specVersion": "1.2",
"serialNumber": "urn:uuid:42a3f88e-1c7e-464d-b56c-4267d92d278b",
"serialNumber": "urn:uuid:fce95ab8-bfb1-4a14-a30a-da83c41a6d23",
"version": 1,
"metadata": {
"timestamp": "2022-07-06T10:21:56-06:00",
"timestamp": "2022-07-06T10:32:39-06:00",
"tools": [
{
"vendor": "CycloneDX",
Expand All @@ -31,11 +31,11 @@
}
],
"component": {
"bom-ref": "pkg:golang/github.com/devops-kung-fu/hinge@v0.0.0-20220705130102-33a97879e469",
"bom-ref": "pkg:golang/github.com/devops-kung-fu/hinge@v0.0.0-20220706102351-86be27157671",
"type": "application",
"name": "github.com/devops-kung-fu/hinge",
"version": "v0.0.0-20220705130102-33a97879e469",
"purl": "pkg:golang/github.com/devops-kung-fu/hinge@v0.0.0-20220705130102-33a97879e469",
"version": "v0.0.0-20220706102351-86be27157671",
"purl": "pkg:golang/github.com/devops-kung-fu/hinge@v0.0.0-20220706102351-86be27157671",
"externalReferences": [
{
"url": "https://github.com/devops-kung-fu/hinge",
Expand Down Expand Up @@ -285,7 +285,7 @@
"ref": "pkg:golang/gopkg.in/yaml.v2@v2.4.0"
},
{
"ref": "pkg:golang/github.com/devops-kung-fu/hinge@v0.0.0-20220705130102-33a97879e469",
"ref": "pkg:golang/github.com/devops-kung-fu/hinge@v0.0.0-20220706102351-86be27157671",
"dependsOn": [
"pkg:golang/github.com/devops-kung-fu/common@v0.2.3",
"pkg:golang/github.com/gookit/color@v1.5.1",
Expand Down

0 comments on commit f10c664

Please sign in to comment.