From c2c7dcabbf06e3da0a2ad07284e25e0ead385bd9 Mon Sep 17 00:00:00 2001 From: Karol Gugala Date: Wed, 18 May 2022 13:36:45 +0200 Subject: [PATCH] CI: use GCP secrets Signed-off-by: Karol Gugala --- .github/workflows/Pipeline.yml | 2 ++ .github/workflows/scripts/xilinx.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index a64aa64d..4bb79f2a 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -22,6 +22,8 @@ jobs: env: GHA_SSH_TUNNEL_KEY: "${{ secrets.LICENSE_TUNNEL_KEY_DATA }}" GHA_SSH_TUNNEL_CONFIG: "${{ secrets.LICENSE_TUNNEL_SSH_CONFIG }}" + GHA_SSH_TUNNEL_CONFIG_SECRET_NAME: "xilinx_license_server_config" + GHA_SSH_TUNNEL_KEY_SECRET_NAME: "xilinx_license_server_key" ALLOW_ROOT: true GHA_EXTERNAL_DISK: "tools" XILINX_LOCAL_USER_DATA: "no" diff --git a/.github/workflows/scripts/xilinx.sh b/.github/workflows/scripts/xilinx.sh index 5a6017f7..4761618a 100755 --- a/.github/workflows/scripts/xilinx.sh +++ b/.github/workflows/scripts/xilinx.sh @@ -56,7 +56,7 @@ echo "----------------------------------------" # Create a tunnel to the server which has the Xilinx licenses and port forward # them. -if [ ! -z "$LICENSE_TUNNEL_KEY_DATA" ]; then +if [ ! -z "$GHA_SSH_TUNNEL_CONFIG_SECRET_NAME" ]; then echo echo "Xilinx license server ssh key found, checking the license"