-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (36 loc) · 1.01 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: DockerCompose
on:
push:
workflow_dispatch:
jobs:
docker:
strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: List images
run: docker images
- name: Rename sample setting file
run: mv ./setting_sample.py ./setting.py
- name: Build the base image
run: docker build -t coscupweb-base:25.01.24 -f ./Dockerfile-base-dev ./
- name: UP
env:
CLIENT_ID: ${{ secrets.TDX_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.TDX_CLIENT_SECRET }}
run: docker compose up --build --detach
- name: List images
run: docker images
- name: List container
run: docker ps -a
- name: Cat Celery Log
run: |
sleep 90 ;
ls -alh ;
ls -alh ./logs ;
ls -alh ./logs/workers ;
docker logs coscup-volunteer-celery_worker-1 ;
cat ./logs/workers/log.log