Skip to content

Commit

Permalink
Update to add CI and release workflows
Browse files Browse the repository at this point in the history
this is work in progess.....
signed off by sean conroy [email protected]
  • Loading branch information
seanconroy2021 committed Oct 4, 2023
1 parent 8e39760 commit 909ec90
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/checks.yaml
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
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
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

0 comments on commit 909ec90

Please sign in to comment.