From 2dc0a4e3a7388be3603077c302a0411cf35b0e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=86=E3=81=95=E3=81=BF=E3=82=87=E3=82=93=28myon2019?= =?UTF-8?q?=29/mtripg6666tdr?= <56076195+mtripg6666tdr@users.noreply.github.com> Date: Sun, 5 Feb 2023 18:33:51 +0900 Subject: [PATCH 1/2] Chore(deploy-snow.yml): deploying as docker container --- .github/workflows/deploy-snow.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-snow.yml b/.github/workflows/deploy-snow.yml index 01601409e..13f59bd6b 100644 --- a/.github/workflows/deploy-snow.yml +++ b/.github/workflows/deploy-snow.yml @@ -36,14 +36,11 @@ jobs: key: ${{ secrets.SECRET_KEY }} envs: BRANCH script: | - cd Discord-SimpleMusicBot - git fetch --prune - git reset --hard origin/$BRANCH - npm ci - npm run build - sudo systemctl daemon-reload - sudo systemctl restart musicbot - sudo systemctl enable musicbot + docker container stop dsmb-instance + docker container rm dsmb-insntance + docker pull ghcr.io/mtripg6666tdr/discord-music-bot:latest + systemctl restart musicbot-docker + systemctl enable musicbot-docker - name: Update deployment status uses: bobheadxi/deployments@v1 with: From 4957f7af03e9154c9c1694470948b41d114ecbfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=86=E3=81=95=E3=81=BF=E3=82=87=E3=82=93=28myon2019?= =?UTF-8?q?=29/mtripg6666tdr?= <56076195+mtripg6666tdr@users.noreply.github.com> Date: Sun, 5 Feb 2023 19:22:26 +0900 Subject: [PATCH 2/2] Update deploy-snow.yml --- .github/workflows/deploy-snow.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-snow.yml b/.github/workflows/deploy-snow.yml index 13f59bd6b..4b62d6ad7 100644 --- a/.github/workflows/deploy-snow.yml +++ b/.github/workflows/deploy-snow.yml @@ -36,11 +36,11 @@ jobs: key: ${{ secrets.SECRET_KEY }} envs: BRANCH script: | - docker container stop dsmb-instance - docker container rm dsmb-insntance - docker pull ghcr.io/mtripg6666tdr/discord-music-bot:latest - systemctl restart musicbot-docker - systemctl enable musicbot-docker + sudo docker container stop dsmb-instance + sudo docker container rm dsmb-insntance + sudo docker pull ghcr.io/mtripg6666tdr/discord-music-bot:latest + sudo systemctl restart musicbot-docker + sudo systemctl enable musicbot-docker - name: Update deployment status uses: bobheadxi/deployments@v1 with: