Skip to content

Commit

Permalink
Select correct folder for sed
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrie committed Oct 29, 2024
1 parent 3b9ac07 commit 637ee63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/setup-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
source: 'docker-compose.staging.yml, docker, .env.example'
target: '/srv/trassenscout-staging/'
target: '/srv/trassenscout-${{ inputs.ENVIRONMENT }}'
overwrite: true

- name: Replace environment variables
Expand All @@ -51,7 +51,7 @@ jobs:
password: ${{ secrets.SSH_PASSWORD }}
script: |
echo "Updating `.env`"
cd /srv
cd /srv/trassenscout-${{ inputs.ENVIRONMENT }}
sed -n '/^[^#].*=/s/^\([^=]*\)=.*/\1=/p' .env.example > .env
rm .env.example
sed -i \
Expand Down

0 comments on commit 637ee63

Please sign in to comment.