From d3ea9c570c06c34acd0d824667edc7633fbb2865 Mon Sep 17 00:00:00 2001 From: Abolfazl Andalib <79583121+abolfazl8131@users.noreply.github.com> Date: Sat, 28 Sep 2024 14:26:39 +0330 Subject: [PATCH] Update docker-CI.yml --- .github/workflows/docker-CI.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-CI.yml b/.github/workflows/docker-CI.yml index 476173f..3532788 100644 --- a/.github/workflows/docker-CI.yml +++ b/.github/workflows/docker-CI.yml @@ -6,6 +6,7 @@ on: pull_request: branches: [ "master" ] + jobs: build: @@ -16,9 +17,34 @@ jobs: - uses: actions/checkout@v4 - name: create venv run: python -m venv venv + - name: install dependecies run: source venv/bin/activate && pip install -r requirements.txt - - name: run in dev mode + + test: + runs-on: ubuntu-latest + env: + ENV: Dev + steps: + - name: run containers in dev mode working-directory: ./AriaStack_Ansible/AriaStack run: sh run_stack.sh - + + - name: stop containers in dev mode + working-directory: ./AriaStack_Ansible/AriaStack + run: sh down_stack.sh + + deploy: + runs-on: ubuntu-latest + env: + ENV: Production + + + + + + + + + +