From 6b87284b566bc28c17e4f3351caaf832a64d97e5 Mon Sep 17 00:00:00 2001 From: Marcus Cvjeticanin Date: Wed, 28 Sep 2022 12:54:34 +0200 Subject: [PATCH] Uncommenting deploy to prod --- .github/workflows/main-ci.yml | 74 +++++++++++++++++------------------ 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index 578fdc30..525b11b9 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -110,40 +110,40 @@ jobs: pip3 install requests python3 scripts/smoke-test.py test-api.novastack.org -# deploy-prod: -# name: Deploy Prod -# runs-on: ubuntu-latest -# needs: [ smoke-test-staging ] -# -# steps: -# - name: Check out the codebase. -# uses: actions/checkout@v2 -# -# - name: Run playbook -# uses: dawidd6/action-ansible-playbook@v2 -# with: -# playbook: provision_vps.yml -# directory: ./ansible -# key: ${{secrets.ANSIBLE_PRIVATE_KEY}} -# vault_password: ${{secrets.ANSIBLE_VAULT_PASS}} -# options: | -# --inventory prod.inventory -# --verbose -# -# smoke-test-prod: -# name: Smoke Test Prod -# runs-on: ubuntu-latest -# needs: [ deploy-prod ] -# -# steps: -# - uses: actions/checkout@v3 -# -# - name: Uses Python 3.11 -# uses: actions/setup-python@v3 -# with: -# python-version: '3.11.0-alpha.1' -# -# - name: Smoke Test -# run: | -# pip3 install requests -# python3 scripts/smoke-test.py api.hugin.chat + deploy-prod: + name: Deploy Prod + runs-on: ubuntu-latest + needs: [ smoke-test-staging ] + + steps: + - name: Check out the codebase. + uses: actions/checkout@v2 + + - name: Run playbook + uses: dawidd6/action-ansible-playbook@v2 + with: + playbook: provision_vps.yml + directory: ./ansible + key: ${{secrets.ANSIBLE_PRIVATE_KEY}} + vault_password: ${{secrets.ANSIBLE_VAULT_PASS}} + options: | + --inventory prod.inventory + --verbose + + smoke-test-prod: + name: Smoke Test Prod + runs-on: ubuntu-latest + needs: [ deploy-prod ] + + steps: + - uses: actions/checkout@v3 + + - name: Uses Python 3.11 + uses: actions/setup-python@v3 + with: + python-version: '3.11.0-alpha.1' + + - name: Smoke Test + run: | + pip3 install requests + python3 scripts/smoke-test.py api.hugin.chat