Skip to content

Commit

Permalink
opa-envoy/1.1.0-r1 package update (#41220)
Browse files Browse the repository at this point in the history
<p align="center">
<img
src="https://raw.githubusercontent.com/wolfi-dev/.github/b535a42419ce0edb3c144c0edcff55a62b8ec1f8/profile/wolfi-logo-light-mode.svg"
/>
</p>

---------

Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
Co-authored-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
Co-authored-by: Daniel Watkins <daniel.watkins@chainguard.dev>
  • Loading branch information
3 people authored Feb 4, 2025
1 parent 87f07a3 commit 20639c6
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions opa-envoy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: opa-envoy
version: 1.0.0
epoch: 1
version: "1.1.0-r1"
epoch: 0
description: A plugin to enforce OPA policies with Envoy.
copyright:
- license: Apache-2.0
Expand All @@ -20,14 +20,12 @@ environment:

var-transforms:
- from: ${{package.version}}
# 1.0.0-r2 -> 1.0.0-envoy-2
match: ^(.+)-r(\d+)$
replace: $1-envoy-$2
to: mangled-package-version
- from: ${{package.version}}
# 1.0.0 -> 1.0.0-envoy
match: ^(\d+\.\d+\.\d+)$
replace: $1-envoy
# 1.0.0 -> 1.0.0-envoy, 1.1.0-r1 -> 1.1.0-envoy-1
# This regex is ugly because of the lack of `-0` on the end of the first
# case: $1 is the 1.2.3 version, $4 is the revision number, $3 captures the
# dash that we need to output only when a revision is present
match: ^([0-9]+.[0-9]+.[0-9]+)((-)r(\d+))?$
replace: $1-envoy$3$4
to: mangled-package-version
- from: ${{package.version}}
match: ^(\d+\.\d+\.\d+).*$
Expand All @@ -39,7 +37,7 @@ pipeline:
with:
repository: https://github.com/open-policy-agent/opa-envoy-plugin
tag: v${{vars.mangled-package-version}}
expected-commit: 805caa67fde431b2f931e22dc4a2b2653ae44896
expected-commit: 8c2742c4b9ebefc84858a443c55940a0b19f5966

- uses: go/build
with:
Expand Down

0 comments on commit 20639c6

Please sign in to comment.