Skip to content

Commit

Permalink
Update OPA version (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh committed Nov 16, 2022
1 parent a820b74 commit 29b23d8
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
@@ -0,0 +1,6 @@
.git
.gitignore
.editorconfig
**/.idea
**/*.iml
**/build
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -10,7 +10,8 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Release
uses: actions/create-release@v1
env:
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
**/.idea
**/*.iml
**/build
**/dist
.DS_Store
*.tar
*.gz
/bin
7 changes: 5 additions & 2 deletions Dockerfile
@@ -1,6 +1,7 @@
FROM golang:1.13.7-stretch
FROM golang:1.19.3-bullseye

ENV OPA_VERSION=v0.18.0
# https://github.com/open-policy-agent/opa/releases
ENV OPA_VERSION=v0.46.1

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
Expand All @@ -15,6 +16,8 @@ RUN mkdir -p /tmp/opa \
&& chmod +x /usr/local/bin/opa \
&& rm -rf /tmp/opa

RUN opa version

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

Expand Down
3 changes: 1 addition & 2 deletions README.md
@@ -1,5 +1,4 @@
action-opa
==========
# action-opa

[![](https://github.com/b4b4r07/action-opa/workflows/release/badge.svg)](https://github.com/b4b4r07/action-opa/releases)

Expand Down
4 changes: 2 additions & 2 deletions action.yml
@@ -1,5 +1,5 @@
name: 'opa'
description: 'Run opa test command'
description: 'Run OPA test command'
inputs:
path:
description: 'Path to directory where rego files are located'
Expand All @@ -15,7 +15,7 @@ inputs:
default: ''
outputs:
result:
description: 'Outputs of opa command'
description: 'Outputs of OPA command'
runs:
using: 'docker'
image: 'Dockerfile'

0 comments on commit 29b23d8

Please sign in to comment.