Skip to content

Commit

Permalink
Uncommenting deploy to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
mjovanc committed Sep 28, 2022
1 parent db19ad8 commit 6b87284
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6b87284

Please sign in to comment.