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

Update prometheus Dockerfile #46

Update prometheus Dockerfile

Update prometheus Dockerfile #46

name: Main Build and Deploy
on:
push:
branches:
- "multiple_jellyfishes"
paths:
- "**"
- "!README.md"
env:
DOMAIN: jellyroom.membrane.ovh
JELLYFISH_ADDRESS: jellyfish.jellyroom.membrane.ovh
BACKEND_ADDRESS: server.jellyroom.membrane.ovh
PROJECT: main
COMPOSE_FILE_NAME: docker-compose-deploy.yaml
TARGET_DIR: jellyfish_videoroom
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare .env file for the deployment
id: variables_population
run: |
echo "DOMAIN=${{env.DOMAIN}}
EXTERNAL_IP=${{secrets.SANDBOX_HOST}}
JELLYFISH2_IP=${{secrets.SANDBOX2_HOST}}
SERVER_API_TOKEN=${{secrets.SERVER_API_TOKEN}}
SECRET_KEY_BASE=${{secrets.SECRET_KEYBASE}}
JELLYFISH_ADDRESS=${{env.JELLYFISH_ADDRESS}}
JELLYFISH_ADDRESSES=${{secrets.SANDBOX_HOST}}:5002 ${{secrets.SANDBOX2_HOST}}:4000
BACKEND_ADDRESS=${{env.BACKEND_ADDRESS}}
BEAM_PORT=9000
GF_SECURITY_ADMIN_PASSWORD=${{secrets.GF_SECURITY_ADMIN_PASSWORD}}
GF_SECURITY_ADMIN_USER=${{secrets.GF_SECURITY_ADMIN_USER}}
SECURE_CONNECTION=false
CHECK_ORIGIN=false" > .env
- name: Remove old containers
uses: JimCronqvist/action-ssh@master
with:
hosts: ${{ secrets.SANDBOX_HOST }}
privateKey: ${{ secrets.SSH_PRIV_KEY }}
command: |
docker ps -aq | xargs -r docker stop | xargs -r docker rm
- name: Deploy docker compose to a pre-configured server
id: deploy
uses: TapTap21/[email protected]
with:
remote_docker_host: ${{ secrets.SANDBOX_HOST }}
ssh_private_key: ${{ secrets.SSH_PRIV_KEY }}
ssh_public_key: ${{ secrets.SSH_PUB_KEY }}
stack_file_name: ${{ env.COMPOSE_FILE_NAME }}
args: -p ${{ env.PROJECT }} --env-file .env up -d --remove-orphans --build