Skip to content

Commit

Permalink
fix printing environment variables in GitLab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonEhrig committed Nov 14, 2024
1 parent 075e88c commit 19b865f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/gitlabci/print_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fi
echo -e "2. Run the following export commands in the container to setup enviroment\n"

# take all env variables, filter it and display it with a `export` prefix
printenv | grep -E 'alpaka_*|ALPAKA_*|CMAKE_*|BOOST_|CUDA_' | while read -r line ; do
printenv | grep -E '^alpaka_*|^ALPAKA_*|^CMAKE_*|^BOOST_*|^CUDA_*|^CI_RUNNER_TAGS*' | while read -r line ; do
echo "export $line \\"
done

Expand All @@ -48,7 +48,7 @@ echo 'export alpaka_DISABLE_EXIT_FAILURE=true \'
echo 'export GITLAB_CI=true'
echo ""

echo "3. install git: apt update; apt install -y git"
echo "3. install git: apt update && apt install -y git"
echo "4. clone alpaka repository: git clone https://gitlab.com/hzdr/crp/alpaka.git --depth 1 -b ${CI_COMMIT_BRANCH}"
echo "5. Run the following script: cd alpaka && ./script/gitlab_ci_run.sh"
# reset the color
Expand Down

0 comments on commit 19b865f

Please sign in to comment.