GitHub Actions for CloudFormation Template Validation and Deployment

name: Ant Media Server Cloudformation Deployment on: schedule: – cron: ‘0 0 * * 1’ jobs: deploy_cf_template: runs-on: ubuntu-latest env: AWS_REGION: eu-west-2 STACK_NAME: cf-automation-test-stack ORIGIN_INSTANCE_TYPE: t2.large EDGE_INSTANCE_TYPE: t2.large MONGO_INSTANCE_TYPE: c5.large TEMPLATE_FILE: ${{ github.workspace }}/cloudformation/antmedia-aws-autoscale-template.yaml steps: – name: Checkout Repository uses: actions/checkout@v2 – name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ …

Continue reading

coTURN installation script

#!/bin/bash # Check if user is running as root if [[ $EUID -ne 0 ]]; then echo “This script must be run as root.” exit 1 fi # Function to install Coturn install_coturn() { apt-get update apt-get install -y coturn truncate -s 0 /etc/turnserver.conf } # Function to generate random username generate_credentials() { username=$(tr -dc …

Continue reading

https://registry.gitlab.com/v2/: x509: certificate signed by unknown authority hatası

Eğer gitlab CI üstünde docker süreçleriniz varsa ve kendi gitlab-runner ‘nızı kullanıyorsanız ve aşağıdaki sertifika hatasını alıyorsanız kendi tarafınızda bazı değişiklikler yapmalısınız. time=”2022-03-19T05:30:18Z” level=info msg=”Error logging in to v2 endpoint, trying next endpoint: Get https://registry.gitlab.com/v2/: x509: certificate signed by unknown authority” Get https://registry.gitlab.com/v2/: x509: certificate signed by unknown authority /etc/gitlab-runner/config.toml dosyasında kendi runner ‘nızı bulup …

Continue reading