Skip to content

Commit be7c3ea

Browse files
Update CI templates to use rego v1 (#193)
1 parent 2bce9b5 commit be7c3ea

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
with:
151151
distribution: goreleaser
152152
version: ${{ env.GO_RELEASER_VERSION }}
153-
args: release --clean --config $PWD/.goreleaser-pre.yml
153+
args: release --clean --config .goreleaser-pre.yml
154154
-
155155
name: Release
156156
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-rc')

templates/github/.github/workflows/build-release-policy.yaml.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ jobs:
5050

5151
- name: Policy Build
5252
id: policy-build
53-
uses: opcr-io/policy-build-action@v3
53+
uses: opcr-io/policy-build-action@v4
5454
with:
5555
src: src
5656
tag: {{`${{ steps.config.outputs.repo }}` }}
5757
revision: "$GITHUB_SHA"
58+
rego_version: "rego.v1"
5859
env:
5960
POLICY_DEFAULT_DOMAIN: {{`${{ steps.config.outputs.server }}` }}
6061

@@ -65,7 +66,7 @@ jobs:
6566
source_tag: {{`${{ steps.config.outputs.repo }}` }}
6667
target_tags: {{`${{ steps.tags.outputs.target_tags }}` }}
6768
env:
68-
POLICY_DEFAULT_DOMAIN: {{`${{ steps.config.outputs.server }}` }}
69+
POLICY_DEFAULT_DOMAIN: {{`${{ steps.config.outputs.server }}` }}
6970

7071
- name: Policy Push
7172
id: policy-push

templates/gitlab/gitlab-ci.yaml.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ variables:
2222
POLICY_DEFAULT_DOMAIN: '{{server}}'
2323
POLICY_USERNAME: '{{username}}'
2424
POLICY_PASSWORD: {{pushkey}}
25+
POLICY_REGO_VERSION: 'rego.v1'
2526

2627
stages:
2728
- build

0 commit comments

Comments
 (0)