Skip to content

Commit

Permalink
fix: 배포 CICD 테스트 (#76) (KAN-131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywonchae1 committed Nov 5, 2024
1 parent c3af666 commit 8d0c5b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,6 @@ jobs:
envs: IMAGE_FULL_URL, DOCKERHUB_IMAGE_NAME # docker-compose.yml 에서 사용할 환경 변수
script: |
echo "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}" | docker login -u "${{ env.DOCKERHUB_USERNAME }}" --password-stdin
docker container restart traefik
docker compose down --remove-orphans
docker compose up --build -d
2 changes: 2 additions & 0 deletions scripts/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
restart: always
environment:
- TZ=Asia/Seoul
ports:
- '8080:8080'
env_file: .env
volumes:
- "./client_secret.json:/client_secret.json"
9 changes: 3 additions & 6 deletions scripts/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Docker configuration backend
providers:
docker: {}
# defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)"
docker:
defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)"

# API and dashboard configuration
api:
Expand All @@ -28,8 +28,5 @@ http:
routers:
server:
rule: "Host(`api.test-wonchae.p-e.kr`)"
entrypoints: websecure
tls:
certResolver: myresolver
domains:
- main: "api.test-wonchae.p-e.kr"
certResolver: myresolver

0 comments on commit 8d0c5b5

Please sign in to comment.