CI: use GCP secrets

Signed-off-by: Karol Gugala <kgugala@antmicro.com>
This commit is contained in:
Karol Gugala 2022-05-18 13:36:45 +02:00 committed by Unai Martinez-Corral
parent 419494e46b
commit 5b33a20311
2 changed files with 3 additions and 1 deletions

View File

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

View File

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