Skip to content

Commit

Permalink
chore: merge branches and production github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jycssu-com committed Jun 20, 2024
1 parent fb9598e commit 80005aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 101 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Test and deploy to branch
on:
push:
branches:
# - preprod
- master
- preprod
- develop

jobs:
Expand Down Expand Up @@ -75,4 +76,7 @@ jobs:
git pull origin ${DOCKER_BRANCH}
docker compose --file docker-compose-branch.yml pull
docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWD }} ${DOCKER_REGISTRY}
THEGRAPH_API_KEY=${{ secrets.THEGRAPH_API_KEY }} COMMUNITY_API_KEY=${{ secrets.COMMUNITY_API_KEY }} docker compose --project-name ${{ github.ref_name }}-dashboard --file docker-compose-branch.yml up -d'
THEGRAPH_API_KEY=${{ secrets.THEGRAPH_API_KEY }} \
COMMUNITY_API_KEY=${{ secrets.COMMUNITY_API_KEY }} \
HOSTNAME=${{ github.ref_name == 'master' && 'dashboard.realt.community' || 'dashboard.${DOCKER_BRANCH}.realt.community' }} \
docker compose --project-name ${{ github.ref_name }}-dashboard --file docker-compose-branch.yml up -d'
77 changes: 0 additions & 77 deletions .github/workflows/prod.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- traefik-realt
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.dashboard-${DOCKER_BRANCH}.rule=Host(`dashboard.${DOCKER_BRANCH}.realt.community`)'
- 'traefik.http.routers.dashboard-${DOCKER_BRANCH}.rule=Host(`${HOSTNAME}`)'
- 'traefik.http.routers.dashboard-${DOCKER_BRANCH}.entrypoints=websecure'
- 'traefik.http.services.dashboard-${DOCKER_BRANCH}.loadbalancer.server.port=3000'
restart: always
Expand Down
21 changes: 0 additions & 21 deletions docker-compose-prod.yml

This file was deleted.

0 comments on commit 80005aa

Please sign in to comment.