Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/deploy github-actions: dev.yaml - blue-green script active te… #191

Merged
merged 2 commits into from
Sep 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/github-actions-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ jobs:
- name: Push Docker Image to GHCR
run: docker push ghcr.io/topazkang/be-dev:latest

deploy_test:
runs-on: [ self-hosted, Linux, X64, connectrip_test]
name: Deploy Test API
needs: build

steps:
- name: set env & deploy
run: |
cd /home/ubuntu/deploy/back
echo "${{ secrets.ENV_FILE_TEST }}" > .env
docker image prune -a -f
docker-compose -f docker-compose.back.yaml down
docker-compose -f docker-compose.back.yaml pull
docker-compose -f docker-compose.back.yaml up -d

deploy_dev:
runs-on: [ self-hosted, Linux, X64, connectrip_be_dev ]
name: Deploy Dev API
Expand Down
Loading