Skip to content

Commit

Permalink
add additional kas composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Sep 6, 2024
1 parent 9e664b0 commit 8125f47
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions test/start-additional-kas/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'start-additional-kas'

# This action relies on the start-up-with-containers action having already run.
# Things like the working directory and configuration location are controlled by that action as predecessor.

description: 'After start-up-with-containers has run, run an additional KAS instance'

inputs:
kas-port:
required: false
description: 'The port for the additional KAS'
default: 8282
kas-name:
required: false
description: 'The name for the additional KAS'
default: 'beta'

runs:
using: 'composite'
steps:
- uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635
name: Start another KAS server in background
with:
run: >
<opentdf.yaml >opentdf-${{ inputs.kas-name }}.yaml yq e '
(.server.port = ${{ inputs.kas-port }})
| (.mode = ["kas"])
| (.sdk_config = {"endpoint":"http://localhost:8080","plaintext":true,"client_id":"opentdf","client_secret":"secret"})
'
&& .github/scripts/watch.sh opentdf-${{ inputs.kas-name }}.yaml ./opentdf --config-file ./opentdf-${{ inputs.kas-name }}.yaml start
wait-on: |
tcp:localhost:${{ inputs.kas-port }}
log-output-if: true
wait-for: 90s
working-directory: otdf-test-platform

0 comments on commit 8125f47

Please sign in to comment.