Skip to content

Commit

Permalink
fix: log
Browse files Browse the repository at this point in the history
  • Loading branch information
ayutaz committed Dec 3, 2023
1 parent 08d1b33 commit 88ce47c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/auto_aggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ jobs:
run: |
touch opt/.env
echo "MIDRA_LAB_NOTION_API=${MIDRA_LAB_NOTION_API}" >> opt/.env
echo "NOTION_DATABASE_URL=${NOTION_DATABASE_URL}" >> opt/.env
echo "NOTION_DATABASE_ID=${NOTION_DATABASE_ID}" >> opt/.env
- name: Build and run Docker Compose
run: |
docker-compose up -d --build
- name: Action run python
run: |
docker compose exec zenn-article-aggregator python opt/main.py
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ USER root
COPY requirements.txt /tmp/
RUN pip install --upgrade pip setuptools \
&& pip install --requirement /tmp/requirements.txt

# スクリプトのコピー
COPY . /opt

# コンテナ起動時に実行されるコマンドを指定
CMD ["python", "/opt/main.py"]

0 comments on commit 88ce47c

Please sign in to comment.