From b5fcf087a52a1b0a81a72039e90bd2a1c900630f Mon Sep 17 00:00:00 2001 From: Kian Parvin <46668016+kian99@users.noreply.github.com> Date: Fri, 30 Aug 2024 08:54:05 +0200 Subject: [PATCH] Add JIMM's CA cert as an output variable (#1334) --- .github/actions/test-server/action.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/actions/test-server/action.yaml b/.github/actions/test-server/action.yaml index a1d2133f1..2d2933b36 100644 --- a/.github/actions/test-server/action.yaml +++ b/.github/actions/test-server/action.yaml @@ -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" @@ -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" @@ -50,6 +53,14 @@ runs: run: make dev-env shell: bash + - name: Retrieve server CA cert. + id: fetch-cert + run: | + echo 'jimm-ca<> $GITHUB_OUTPUT + cat ./local/traefik/certs/ca.crt >> $GITHUB_OUTPUT + echo 'EOF' >> $GITHUB_OUTPUT + shell: bash + - name: Initialise LXD run: | sudo lxd waitready && \