-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to add CI and release workflows
this is work in progess..... signed off by sean conroy [email protected]
- Loading branch information
1 parent
8e39760
commit 909ec90
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Checks | ||
|
||
"on": | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
status: ${{ job.status }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name : Run EC Validate (keyless) | ||
uses: ./ | ||
with: | ||
image: ghcr.io/enterprise-contract/golden-container:latest | ||
identity: https:\/\/github\.com\/(slsa-framework\/slsa-github-generator|enterprise-contract\/golden-container)\/ | ||
issuer: https://token.actions.githubusercontent.com | ||
|
||
- name : Run EC Validate (Long_Lived) | ||
uses: ./ | ||
with: | ||
image: quay.io/redhat-appstudio/ec-golden-image:latest | ||
key: ${{ vars.PUBLIC_KEY }} | ||
policy: github.com/enterprise-contract/config//slsa3 | ||
extra-params: --ignore-rekor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release | ||
|
||
"on": | ||
workflow_run: | ||
workflows: [Checks] | ||
types: [completed] | ||
branches: [main] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Create or Update 'latest' EC Validate Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: Latest release | ||
body: Latest stable release. | ||
tag_name: latest | ||
generate_release_notes: false | ||
draft: false |