Skip to content

remove acknowledged alerts (#113) #8

remove acknowledged alerts (#113)

remove acknowledged alerts (#113) #8

Workflow file for this run

name: push
on:
push:
branches: main
jobs:
dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.6.1"
- name: Resolve dependencies
run: poetry export -f requirements.txt --without-hashes --output requirements.txt
- name: Build docker
run: docker build . -t pyronear/pyro-platform:latest
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to hub
run: docker push pyronear/pyro-platform:latest
deploy-dev:
needs: dockerhub
runs-on: ubuntu-latest
steps:
- uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.SSH_DEV_HOST }}
username: ${{ secrets.SSH_DEV_USERNAME }}
key: ${{ secrets.SSH_DEPLOY_DEV }}
script: |
docker pull pyronear/pyro-platform:latest
cd pyro-platform-prod && docker compose down && docker compose up -d
docker inspect -f '{{ .Created }}' $(docker compose images -q frontend)