-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Purshotam patidar
committed
Jun 21, 2024
1 parent
f84caa8
commit df4423f
Showing
2 changed files
with
36 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
name: Deploy with Docker Compose | ||
name: Deploy Impler to Quality | ||
|
||
on: | ||
push: | ||
branches: | ||
- next | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Project | ||
uses: ./.github/workflows/reusable-setup.yml | ||
setup_project: | ||
uses: ./.github/workflows/reusable-setup.yml | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Setup Project | ||
# uses: ./.github/workflows/reusable-setup.yml | ||
|
||
- name: Build API | ||
if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/api/') }} | ||
uses: ./.github/workflows/build-api.yml | ||
|
||
- name: Build Embed | ||
if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/embed/') }} | ||
uses: ./.github/workflows/build-embed.yml | ||
|
||
- name: Build Queue Manager | ||
if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/queuemanager/') }} | ||
uses: ./.github/workflows/build-queuemanager.yml | ||
|
||
- name: Build Web | ||
if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/web/') }} | ||
uses: ./.github/workflows/build-web.yml | ||
|
||
- name: Build Widget | ||
if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/widget/') }} | ||
uses: ./.github/workflows/build-widget.yml | ||
|
||
- name: Setup SSH | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Run Docker Compose Up | ||
run: | | ||
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} \ | ||
"cd /home/impler/impler-quality && docker-compose up -d" | ||
# - name: Build API | ||
# if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/api/') }} | ||
# uses: ./.github/workflows/build-api.yml | ||
|
||
# - name: Build Embed | ||
# if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/embed/') }} | ||
# uses: ./.github/workflows/build-embed.yml | ||
|
||
# - name: Build Queue Manager | ||
# if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/queuemanager/') }} | ||
# uses: ./.github/workflows/build-queuemanager.yml | ||
|
||
# - name: Build Web | ||
# if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/web/') }} | ||
# uses: ./.github/workflows/build-web.yml | ||
|
||
# - name: Build Widget | ||
# if: ${{ github.event_name == 'push' && (github.event.head_commit.modified || github.event.head_commit.added || github.event.head_commit.removed) && contains(toJSON(github.event.head_commit.modified), 'apps/widget/') }} | ||
# uses: ./.github/workflows/build-widget.yml | ||
|
||
# - name: Setup SSH | ||
# uses: webfactory/[email protected] | ||
# with: | ||
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
# - name: Run Docker Compose Up | ||
# run: | | ||
# ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} \ | ||
# "cd /home/impler/impler-quality && docker-compose up -d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters