-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
116 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,2 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
.DS_Store | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Aserto", | ||
"datadude", | ||
"entrypoint", | ||
"opcr", | ||
"peoplefinder", | ||
"skip-forward", | ||
"sver" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,80 @@ | ||
# policy-push-action | ||
policy-push-action | ||
# Policy Push Action | ||
|
||
## policy-push-action | ||
|
||
Push (publish) policy image to registry. | ||
|
||
|
||
## Inputs | ||
|
||
### `tag` | ||
|
||
**Required** The image tag to be pushed to the registry. | ||
|
||
Default: empty | ||
|
||
### `server` | ||
|
||
**Required** The registry service hostname. | ||
|
||
Default: `opcr.io` | ||
|
||
### `verbosity` | ||
|
||
**Required** The logging verbosity level [ `info` | `error` | `debug` | `trace` ] used. | ||
|
||
Default: `error` | ||
|
||
|
||
## Outputs | ||
|
||
None defined | ||
|
||
|
||
## Example | ||
|
||
``` | ||
name: policy-build-release | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
release_policy: | ||
runs-on: ubuntu-latest | ||
name: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Policy Login | ||
id: policy-login | ||
uses: opcr-io/policy-login-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
username: policy-bot | ||
password: "$GITHUB_TOKEN" | ||
- name: Policy Build | ||
id: policy-build | ||
uses: opcr-io/policy-build-action@v1 | ||
with: | ||
src: peoplefinder/src | ||
tag: datadude/peoplefinder:$(sver -n patch) | ||
revision: "$GITHUB_SHA" | ||
- name: Policy Push | ||
id: policy-push | ||
uses: opcr-io/policy-push-action@v1 | ||
with: | ||
tag: datadude/peoplefinder:$(sver -n patch) | ||
- name: Policy Logout | ||
id: policy-logout | ||
uses: opcr-io/policy-logout-action@v1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Policy Push" | ||
description: "Push policy image to registry" | ||
author: "Aserto Inc." | ||
branding: | ||
icon: skip-forward | ||
color: blue | ||
inputs: | ||
tag: | ||
description: "image tag to be pushed" | ||
required: true | ||
server: | ||
description: "registry service hostname" | ||
required: true | ||
default: "opcr.io" | ||
verbosity: | ||
description: "verbosity level [info|error|debug|trace]" | ||
required: true | ||
default: error | ||
runs: | ||
using: docker | ||
image: 'docker://ghcr.io/opcr-io/policy:latest' | ||
entrypoint: /app/push.sh |