Skip to content
log-out

GitHub Action

Policy Logout

v1.0.1 Latest version

Policy Logout

log-out

Policy Logout

Logout from Open Policy Registry (opcr.io)

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Policy Logout

uses: opcr-io/[email protected]

Learn more about this action in opcr-io/policy-logout-action

Choose a version

Policy Logout Action

policy-logout-action

GitHub action to log-out of the Open Policy Registry (opcr.io)

Inputs

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@v4

    - name: Policy Login
      id: policy-login
      uses: opcr-io/policy-login-action@v3
      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@v3
      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@v3
      with:
        tag: datadude/peoplefinder:$(sver -n patch)

    - name: Policy Logout
      id: policy-logout
      uses: opcr-io/policy-logout-action@v3