Skip to content

Merge pull request #42 from fabriziosestito/refactor/oci-sigstore-cap #17

Merge pull request #42 from fabriziosestito/refactor/oci-sigstore-cap

Merge pull request #42 from fabriziosestito/refactor/oci-sigstore-cap #17

Workflow file for this run

on:
push:
branches:
- main
tags:
- "v*"
name: Release policy
jobs:
test:
name: run tests and linters
uses: ./.github/workflows/test.yml
release:
runs-on: ubuntu-latest
needs: test
permissions:
# Required to create GH releases
contents: write
# Required to push to GHCR
packages: write
# Required by cosign keyless signing
id-token: write
steps:
- name: Install dependencies
uses: kubewarden/github-actions/[email protected]
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: "1.21"
- run: make annotated-policy.wasm
- name: Run e2e tests
run: |
make e2e-tests
- name: Release
uses: kubewarden/github-actions/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
oci-target: ghcr.io/${{ github.repository_owner }}/policies/cel-policy