Skip to content

Commit

Permalink
Try alternative way of setting environment variables from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
connoramoreno committed Apr 25, 2024
1 parent 03bcb80 commit 6a952a2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,12 @@ jobs:

- name: populate environment
run: |
echo "rlmSERVER=${{ secrets.RLMSERVER }}" >> "$GITHUB_ENV"
echo "rlmPASSWD=${{ secrets.RLMPASSWORD}}" >> "$GITHUB_ENV"
. /opt/etc/bashrc
conda activate parastell_env
printenv
sed -e "s/@SERVER@/${rlmSERVER}/" -e "s/@PASSWORD@/${rlmPASSWD}/" /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.in > /opt/Coreform-Cubit-2023.11/bin/licenses/rlmcloud.lic
export PYTHONPATH=${PYTHONPATH}:`pwd`
- name: test environment
run: |
cd tests
pytest -v test_parastell.py
env:
rlmSERVER: ${{ secrets.RLMSERVER }}
rlmPASSWD: ${{ secrets.RLMPASSWORD}}

0 comments on commit 6a952a2

Please sign in to comment.