Skip to content

Commit

Permalink
chore(ci): update staging deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 14, 2022
1 parent b773341 commit 4326111
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
- develop

jobs:
deploy:
deploy_backend:
runs-on: ${{ matrix.os }}

environment:
name: staging
url: https://app.staging-frontend.druxtjs-org-demo-umami.au2.amazee.io
name: staging-backend
url: https://api.staging.umami.demo.druxtjs.org

strategy:
matrix:
Expand Down Expand Up @@ -39,7 +39,36 @@ jobs:
- name: Wait for backend
uses: nev7n/wait_for_response@v1
with:
url: 'https://nginx.staging-backend.druxtjs-org-demo-umami.au2.amazee.io/jsonapi'
url: 'https://api.staging.umami.demo.druxtjs.org/jsonapi'
responseCode: 200
timeout: 600000
interval: 15000

deploy_frontend:
runs-on: ${{ matrix.os }}

environment:
name: staging-frontend
url: https://staging.umami.demo.druxtjs.org

strategy:
matrix:
os: [ubuntu-latest]
node: [16]

steps:
- name: Checkout 🛎
uses: actions/checkout@master

- name: Configure git
run: |
git config --global user.name 'Deploy workflow'
git config --global user.email "ci@{$GITHUB_HEAD_REF}"
- name: Wait for backend
uses: nev7n/wait_for_response@v1
with:
url: 'https://api.staging.umami.demo.druxtjs.org/jsonapi'
responseCode: 200
timeout: 600000
interval: 15000
Expand All @@ -56,7 +85,7 @@ jobs:
- name: Wait for frontend
uses: nev7n/wait_for_response@v1
with:
url: 'https://app.staging-frontend.druxtjs-org-demo-umami.au2.amazee.io'
url: 'https://staging.umami.demo.druxtjs.org'
responseCode: 200
timeout: 600000
interval: 15000
Expand Down

0 comments on commit 4326111

Please sign in to comment.