Skip to content

Commit

Permalink
Update CI templates to use rego v1 (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
carabasdaniel authored Jan 30, 2025
1 parent 2bce9b5 commit be7c3ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
with:
distribution: goreleaser
version: ${{ env.GO_RELEASER_VERSION }}
args: release --clean --config $PWD/.goreleaser-pre.yml
args: release --clean --config .goreleaser-pre.yml
-
name: Release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-rc')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ jobs:

- name: Policy Build
id: policy-build
uses: opcr-io/policy-build-action@v3
uses: opcr-io/policy-build-action@v4
with:
src: src
tag: {{`${{ steps.config.outputs.repo }}` }}
revision: "$GITHUB_SHA"
rego_version: "rego.v1"
env:
POLICY_DEFAULT_DOMAIN: {{`${{ steps.config.outputs.server }}` }}

Expand All @@ -65,7 +66,7 @@ jobs:
source_tag: {{`${{ steps.config.outputs.repo }}` }}
target_tags: {{`${{ steps.tags.outputs.target_tags }}` }}
env:
POLICY_DEFAULT_DOMAIN: {{`${{ steps.config.outputs.server }}` }}
POLICY_DEFAULT_DOMAIN: {{`${{ steps.config.outputs.server }}` }}

- name: Policy Push
id: policy-push
Expand Down
1 change: 1 addition & 0 deletions templates/gitlab/gitlab-ci.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ variables:
POLICY_DEFAULT_DOMAIN: '{{server}}'
POLICY_USERNAME: '{{username}}'
POLICY_PASSWORD: {{pushkey}}
POLICY_REGO_VERSION: 'rego.v1'

stages:
- build
Expand Down

0 comments on commit be7c3ea

Please sign in to comment.