Skip to content

[PB-5187] feat(remove-limits): prevent closing and removing room if u… #32

[PB-5187] feat(remove-limits): prevent closing and removing room if u…

[PB-5187] feat(remove-limits): prevent closing and removing room if u… #32

name: Build & Deploy to Production
on:
push:
branches: ['master', 'feat/cd']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v5
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push to the Docker Remote Repository
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/meet-server:${{ github.sha }}
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: production
steps:
- uses: actions/checkout@v5
- name: Deploy update on the Kubernetes cluster
uses: steebchen/kubectl@v2.0.0
with:
config: ${{ secrets.KUBE_CONFIG_DATA }}
command: set image --record deployment/meet-server-dp meet-server=${{ secrets.DOCKERHUB_USERNAME }}/meet-server:${{ github.sha }}