Skip to content

Commit

Permalink
Update build-and-push-and-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rssws authored Jun 25, 2022
1 parent 7ad57be commit f010ac9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-push-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
runs-on: ubuntu-latest
needs: [build-and-push]
steps:
- uses: actions/checkout@v3

- name: Create SSH private key
run: |
mkdir -p ~/.ssh/
Expand All @@ -54,9 +56,7 @@ jobs:
ssh -t ${{ secrets.DEPLOY_SSH_HOSTNAME }} \
" \
cd /home/pi/piWeather && \
PI_WEATHER_VERSION=$(cat .env | grep VERSION) && \
sed -i 's/VERSION=.*/'"$PI_WEATHER_VERSION"'/g' .env.prod && \
unset $PI_WEATHER_VERSION \
sed -i 's/VERSION=.*/'"$(cat .env | grep VERSION)"'/g' .env.prod \
"
- name: Pull the latest repository and docker images
Expand Down

0 comments on commit f010ac9

Please sign in to comment.