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 af7b96d commit cf6b898
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 @@ -52,15 +52,15 @@ jobs:

- name: Replace version in .env.prod
run: |
ssh -t ${{ secrets.DEPLOY_SSH_HOSTNAME }} \
ssh -i ~/.ssh/private -t ${{ secrets.DEPLOY_SSH_HOSTNAME }} \
" \
cd /home/pi/piWeather && \
sed -i 's/VERSION=.*/'"$(cat .env | grep VERSION)"'/g' .env.prod \
"
- name: Pull the latest repository and docker images
run: |
ssh -t ${{ secrets.DEPLOY_SSH_HOSTNAME }} \
ssh -i ~/.ssh/private -t ${{ secrets.DEPLOY_SSH_HOSTNAME }} \
" \
cd /home/pi/piWeather && \
git checkout main && \
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Run the latest images
run: |
ssh -t ${{ secrets.DEPLOY_SSH_HOSTNAME }} \
ssh -i ~/.ssh/private -t ${{ secrets.DEPLOY_SSH_HOSTNAME }} \
" \
cd /home/pi/piWeather && \
docker compose --env-file=.env.prod up -d \
Expand Down

0 comments on commit cf6b898

Please sign in to comment.