Pass environment variables to the remote machine

This commit is contained in:
Eugen Betke 2024-07-25 11:25:05 +02:00 committed by shahramn
parent 339d918734
commit 8bcbdf8197
2 changed files with 3 additions and 13 deletions

View File

@ -14,16 +14,9 @@ module load python3
version=$(cat $TMPDIR/eccodes/VERSION)
env_check_param="$1"
echo env_check: $env_check_param
echo ENV_CHECK: $ENV_CHECK
regression_suite_dir=$TMPDIR/eccodes-regression-tests
mkdir -p $regression_suite_dir
git clone https://oauth2:${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
#git clone https://${GH_TOKEN}:@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
#git clone https://${GH_TOKEN}:x-oauth-basic@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
#git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
git clone https://${GH_TOKEN}@github.com/ecmwf/eccodes-regression-tests.git $regression_suite_dir
cd $regression_suite_dir
#cd ~masn/REGRESSION_TESTING/ecCodes

View File

@ -11,10 +11,6 @@ on:
type: boolean
default: false
env:
GH_TOKEN: ${{ secrets.GH_REPO_READ_TOKEN }}
ENV_CHECK: 'SUCCESS'
jobs:
ci-hpc:
name: ci-hpc
@ -22,6 +18,7 @@ jobs:
with:
name-prefix: eccodes-
build-inputs: |
--env: 'GH_TOKEN=${{ secrets.GH_REPO_READ_TOKEN }}'
--package: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
--modules: |
ecbuild
@ -32,6 +29,6 @@ jobs:
--cmake-options: |
-DENABLE_EXTRA_TESTS=1
${{ inputs.nightly_test && '-DENABLE_PNG=1,-DENABLE_NETCDF=1' || '' }}
${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh ${ENV_CHECK}' || '' }}
${{ inputs.nightly_test && '--post-script: .github/ci-nightly-test.sh' || '' }}
${{ inputs.nightly_test && '--force-build: true' || '' }}
secrets: inherit