Update uv sync command to specify directory for deployment
All checks were successful
Test and build Docker image / docker (push) Successful in 1m39s
All checks were successful
Test and build Docker image / docker (push) Successful in 1m39s
This commit is contained in:
parent
b9d04358f3
commit
d51ca2cced
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
# echo "ghp_YOUR_TOKEN_HERE" | sudo -u forgejo-runner docker login ghcr.io -u TheLovinator1 --password-stdin
|
# echo "ghp_YOUR_TOKEN_HERE" | sudo -u forgejo-runner docker login ghcr.io -u TheLovinator1 --password-stdin
|
||||||
# 6. Configure sudoers for deployment (sudo EDITOR=nvim visudo):
|
# 6. Configure sudoers for deployment (sudo EDITOR=nvim visudo):
|
||||||
# forgejo-runner ALL=(discord-rss) NOPASSWD: /usr/bin/git -C /home/discord-rss/discord-rss-bot pull
|
# forgejo-runner ALL=(discord-rss) NOPASSWD: /usr/bin/git -C /home/discord-rss/discord-rss-bot pull
|
||||||
# forgejo-runner ALL=(discord-rss) NOPASSWD: /usr/bin/uv sync -U
|
# forgejo-runner ALL=(discord-rss) NOPASSWD: /usr/bin/uv sync -U --directory /home/discord-rss/discord-rss-bot
|
||||||
# forgejo-runner ALL=(root) NOPASSWD: /bin/systemctl restart discord-rss-bot
|
# forgejo-runner ALL=(root) NOPASSWD: /bin/systemctl restart discord-rss-bot
|
||||||
|
|
||||||
name: Test and build Docker image
|
name: Test and build Docker image
|
||||||
|
|
@ -96,5 +96,5 @@ jobs:
|
||||||
if: success() && forge.ref == 'refs/heads/master'
|
if: success() && forge.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
sudo -u discord-rss git -C /home/discord-rss/discord-rss-bot pull
|
sudo -u discord-rss git -C /home/discord-rss/discord-rss-bot pull
|
||||||
sudo -u discord-rss uv sync -U
|
sudo -u discord-rss uv sync -U --directory /home/discord-rss/discord-rss-bot
|
||||||
sudo systemctl restart discord-rss-bot
|
sudo systemctl restart discord-rss-bot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue