Skip to content

Continuous Deployment - Demos #4

Continuous Deployment - Demos

Continuous Deployment - Demos #4

Workflow file for this run

name: Continuous Deployment - Demos
on:
workflow_dispatch:
inputs:
image-tag:
type: string
description: Tag for the image to be published (e.g. 'dev', 'latest', 'v1.0')
env:
DH_USERNAME: ${{secrets.DOCKER_HUB_LOGIN}}
DH_TOKEN: ${{secrets.DOCKER_HUB_PWD}}
jobs:
build-and-push-pymediasoup-client:
name: Build and push Pymediasoup client docker image
runs-on: ubuntu-latest
env:
IMAGE_NAME: 'webrtc-pymediasoup-client-demo'
IMAGE_TAG: ${{ github.event.inputs.image-tag }}
steps:
- name: Checkout webrtc-server
uses: actions/checkout@v4
- name: Log in to Docker Hub
run: |
echo "$DH_TOKEN" | docker login -u "$DH_USERNAME" --password-stdin
- name: Build Docker image
run: |
docker build -f demo/pymediasoup-client/Dockerfile -t $DH_USERNAME/$IMAGE_NAME:$IMAGE_TAG ./demo/pymediasoup-client
- name: Add tags to Docker image and push to Docker Hub
run: |
docker push $DH_USERNAME/$IMAGE_NAME:$IMAGE_TAG
build-and-push-webclient:
name: Build and push WebClient Mediasoup docker image
runs-on: ubuntu-latest
env:
IMAGE_NAME: webrtc-webclient
IMAGE_TAG: ${{ github.event.inputs.image-tag }}
steps:
- name: Checkout WebClient Mediasoup
uses: actions/checkout@v4
- name: Log in to Docker Hub
run: echo "$DH_TOKEN" | docker login -u "$DH_USERNAME" --password-stdin
- name: Build Docker image
run: docker build -f demo/webclient/Dockerfile -t $DH_USERNAME/$IMAGE_NAME:$IMAGE_TAG ./demo/webclient
- name: Add tags to Docker image and push to Docker Hub
run: docker push $DH_USERNAME/$IMAGE_NAME:$IMAGE_TAG