Skip to content

Commit

Permalink
Reordered commands again
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrithicusGreenson committed Apr 15, 2024
1 parent 3562600 commit d07f428
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/genisys-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ jobs:

- name: Install Meteor
uses: meteorengineer/setup-meteor@v1


- name: Server prerequisites
run: |
ifconfig
echo "MONGO_URL=${{ env.MONGO_URL }}" >> "$GITHUB_ENV"
echo "CONFIG_FILE=${{ env.CONFIG_FILE }}" >> "$GITHUB_ENV"
echo "RUNNER_IP=$(hostname -i)" >> "$GITHUB_ENV"
echo "GITHUB_RUNNER='True'" >> "$GITHUB_ENV"
sudo mkdir /srv/genisys
- name: Build Meteor
run: |
cd ${{ env.METEOR_DIR }}
Expand All @@ -50,14 +59,5 @@ jobs:
- name: Run Genisys Install
run: sudo $(which poetry) run genisys install -f ${{ env.CONFIG_FILE }}

- name: Server prerequisites
run: |
ifconfig
echo "MONGO_URL=${{ env.MONGO_URL }}" >> "$GITHUB_ENV"
echo "CONFIG_FILE=${{ env.CONFIG_FILE }}" >> "$GITHUB_ENV"
echo "RUNNER_IP=$(hostname -i)" >> "$GITHUB_ENV"
echo "GITHUB_RUNNER='True'" >> "$GITHUB_ENV"
sudo mkdir /srv/genisys
- name: Run Genisys Server
run: sudo -E $(which poetry) run genisys server -f ${{ env.CONFIG_FILE }}
2 changes: 1 addition & 1 deletion genisys/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_section(self: Self, heading: str) -> dict:

# If being run in a github runner environment, we need to get
# the new network/IP values at run time.
if 'GITHUB_RUNNER' in os.environ and os.environ['GITHUB_RUNNER'] is 'True':
if 'GITHUB_RUNNER' in os.environ:
runner_ip = os.environ['RUNNER_IP']
# Assign IP of server
dictionary['ip'] = str(IPv4Address(runner_ip))
Expand Down

0 comments on commit d07f428

Please sign in to comment.