Skip to content

Commit

Permalink
change action
Browse files Browse the repository at this point in the history
  • Loading branch information
margar-melkonyan committed Aug 11, 2024
1 parent 87a6832 commit 11d0b65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ jobs:
deploy:
env:
DEPLOY_DIRECTORY: /usr/local/src/apps/discord-purger-chat
ENV_FILE_PATH: /usr/local/src/apps/discord-purger-chat/bin/config.env
CONFIG_PATH: /usr/local/src/apps/discord-purger-chat/.env
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -30,10 +28,6 @@ jobs:
run: ssh -o "StrictHostKeyChecking=no" ${{ secrets.HOST }} -i deploy_key.pem "cd ${{ env.DEPLOY_DIRECTORY }} && docker-compose up -d"
- name: Copy systemd service file
run: |
ssh -i deploy_key.pem -o StrictHostKeyChecking=no ${{ secrets.HOST }} "\
touch ${{ env.ENV_FILE_PATH }} && \
chmod 600 ${{ env.ENV_FILE_PATH }} && \
echo 'CONFIG_PATH=${{ env.CONFIG_PATH }}' > ${{ env.ENV_FILE_PATH }}"
scp -i deploy_key.pem -o StrictHostKeyChecking=no ${{ github.workspace }}/deployment/discord-purger-chat.service ${{ secrets.HOST }}:/tmp/discord-purger-chat.service
ssh -i deploy_key.pem -o StrictHostKeyChecking=no ${{ secrets.HOST }} "mv /tmp/discord-purger-chat.service /etc/systemd/system/discord-purger-chat.service"
- name: Start application
Expand Down
2 changes: 1 addition & 1 deletion deployment/discord-purger-chat.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ExecStart=/usr/local/src/apps/discord-purger-chat/bin/app
Restart=always
RestartSec=4
StandardOutput=inherit
EnvironmentFile=/usr/local/src/apps/discord-purger-chat/bin/config.env
EnvironmentFile=/usr/local/src/apps/discord-purger-chat/.env

[Install]
WantedBy=multi-user.target

0 comments on commit 11d0b65

Please sign in to comment.