Skip to content

Commit

Permalink
fix(cd): Use github.sha variable
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr authored Mar 17, 2024
1 parent cc1ad79 commit fb7dc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
SSH_HOST: ${{ secrets.SSH_HOST }}

- name: Build
run: ssh prod 'cd flok && git fetch && git reset --hard $GITHUB_SHA && npm install'
run: ssh prod 'cd flok && git fetch && git reset --hard ${{ github.sha }} && npm install'

- name: Restart server
run: ssh prod 'sudo systemctl restart flok'
Expand Down

0 comments on commit fb7dc86

Please sign in to comment.