Skip to content

Commit

Permalink
Add JIMM's CA cert as an output variable (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 authored Aug 30, 2024
1 parent 6c1d24d commit b5fcf08
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/actions/test-server/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
The PAT token can be left empty when building the development version of JIMM.
required: true

output:
outputs:
url:
description: 'URL where JIMM can be reached.'
value: "https://jimm.localhost"
Expand All @@ -26,6 +26,9 @@ output:
client-secret:
description: 'Test client Secret to login to JIMM with a service account.'
value: "2M2blFbO4GX4zfggQpivQSxwWX1XGgNf"
ca-cert:
description: 'The CA certificate used to genereate the JIMM server cert.'
value: ${{ steps.fetch-cert.outputs.jimm-ca }}

runs:
using: "composite"
Expand All @@ -50,6 +53,14 @@ runs:
run: make dev-env
shell: bash

- name: Retrieve server CA cert.
id: fetch-cert
run: |
echo 'jimm-ca<<EOF' >> $GITHUB_OUTPUT
cat ./local/traefik/certs/ca.crt >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
shell: bash

- name: Initialise LXD
run: |
sudo lxd waitready && \
Expand Down

0 comments on commit b5fcf08

Please sign in to comment.