Skip to content

Commit

Permalink
cd clickdi
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdanh27600 committed Sep 4, 2023
1 parent 4d8dac4 commit a931796
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,18 @@ jobs:
# sudo sh ./migrate.sh
# sudo sh ./puppeteer.sh
# sudo docker system prune -f
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'clickdi'
slot-name: 'production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_CLICKDI }}
configuration-file: 'docker-compose.yml'
26 changes: 12 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
version: '3'
services:
app:
# build:
# context: ./
image: ghcr.io/thanhdanh27600/dolph-utils:latest
app-short:
image: ghcr.io/thanhdanh27600/clickdi:latest
hostname: app
container_name: app-short
ports:
- "3000:3000"
restart: always
networks:
- common-network
volumes:
- db:/prisma
- clickdi-network
cache:
image: redis:6.2-alpine
container_name: cache
restart: always
ports:
- '6379:6379'
# ports:
# - '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass dolph123
volumes:
- cache:/data
networks:
- common-network
- clickdi-network
volumes:
cache:
driver: local
db:
driver: local
networks:
common-network:
external: true
clickdi-network:
driver: bridge

0 comments on commit a931796

Please sign in to comment.