From 8caa3d42d042fc0148881ce75a2b53f891fbdd71 Mon Sep 17 00:00:00 2001 From: Joseph Cheng Date: Wed, 24 Apr 2024 19:39:18 +0100 Subject: [PATCH] chore: update docker compose config --- .github/workflows/deploy.yml | 2 +- docker-compose.yml | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0c5724a..4f803be 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -86,7 +86,7 @@ jobs: host: ${{ secrets.DEPLOY_HOST }} username: ${{ secrets.DEPLOY_USERNAME }} key: ${{ secrets.DEPLOY_KEY }} - port: 22 + port: ${{ secrets.DEPLOY_PORT }} envs: GITHUB_TOKEN,USERNAME script: | echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_USER --password-stdin diff --git a/docker-compose.yml b/docker-compose.yml index 7dd94ee..0be61f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,7 @@ version: '3.9' services: discord-bot: - image: ghcr.io/hon9kon9ize/yue-discord-bot:release + image: ghcr.io/hon9kon9ize/yue-discord-bot:latest restart: always - environment: - DISCORD_TOKEN: ${DISCORD_TOKEN} - DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID} - AIRTABLE_API_KEY: ${AIRTABLE_API_KEY} - AIRTABLE_BASE_ID: ${AIRTABLE_BASE_ID} - AIRTABLE_TABLE_IDS: ${AIRTABLE_TABLE_IDS} + env_file: + - .env