Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
[DevOps] Use TapTap21 action for real, define compose project
Browse files Browse the repository at this point in the history
  • Loading branch information
bblaszkow06 committed Jun 22, 2022
1 parent c75aa10 commit 4574022
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/sandbox_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
push: true
build-args: VERSION=${{ steps.vars.outputs.version }}
tags: membraneframework/demo_webrtc_videoroom_advanced:${{ env.TAG }}

deploy:
runs-on: ubuntu-latest
needs: build
Expand All @@ -64,12 +64,10 @@ jobs:

- name: Deploy docker compose to a pre-configured server
id: deploy
uses: Autom3/docker-deployment-action@3.0.1
uses: TapTap21/docker-remote-deployment-action@v1.1
with:
remote_docker_host: ${{ secrets.SANDBOX_HOST }}
ssh_private_key: ${{ secrets.SSH_PRIV_KEY }}
ssh_public_key: ${{ secrets.SSH_KNOWN_HOSTS}}
deployment_mode: docker-compose
stack_file_name: docker-compose.yml
pull_images_first: true
args: --env-file .env up -d
args: -p sandbox --env-file .env up -d --remove-orphans
8 changes: 3 additions & 5 deletions .github/workflows/staging_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
push: true
build-args: VERSION=${{ steps.vars.outputs.version }}
tags: membraneframework/demo_webrtc_videoroom_advanced:${{ env.TAG }}

deploy:
runs-on: ubuntu-latest
needs: build
Expand All @@ -64,12 +64,10 @@ jobs:

- name: Deploy docker compose to a pre-configured server
id: deploy
uses: Autom3/docker-deployment-action@3.0.1
uses: TapTap21/docker-remote-deployment-action@v1.1
with:
remote_docker_host: ${{ secrets.STAGING_HOST }}
ssh_private_key: ${{ secrets.SSH_PRIV_KEY }}
ssh_public_key: ${{ secrets.SSH_KNOWN_HOSTS}}
deployment_mode: docker-compose
stack_file_name: docker-compose.yml
pull_images_first: true
args: --env-file .env up -d
args: -p staging --env-file .env up -d --remove-orphans
8 changes: 3 additions & 5 deletions .github/workflows/tag_build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
steps:
steps:
- uses: actions/checkout@v3

- name: Prepare .env file for the deployment
Expand All @@ -65,13 +65,11 @@ jobs:

- name: Deploy docker compose to a pre-configured server
id: deploy
uses: Autom3/docker-deployment-action@3.0.1
uses: TapTap21/docker-remote-deployment-action@v1.1
with:
remote_docker_host: ${{ secrets.DEMO_HOST }}
ssh_private_key: ${{ secrets.SSH_PRIV_KEY }}
ssh_public_key: ${{ secrets.SSH_KNOWN_HOSTS}}
deployment_mode: docker-compose
stack_file_name: docker-compose.yml
pull_images_first: true
args: --env-file .env up -d
args: -p production --env-file .env up -d --remove-orphans

4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "3"
services:
videoroom_advanced:
videoroom:
image: membraneframework/demo_webrtc_videoroom_advanced:${TAG:-latest}
network_mode: "host"
environment:
Expand All @@ -9,4 +9,4 @@ services:
INTEGRATED_TURN_IP: "${INTEGRATED_TURN_IP:-127.0.0.1}"
INTEGRATED_TURN_PORT_RANGE: "50000-65355"
INTEGRATED_TCP_TURN_PORT: "49999"

0 comments on commit 4574022

Please sign in to comment.