Skip to content

Commit

Permalink
Infra fix staging deploy commit v1 (#213)
Browse files Browse the repository at this point in the history
* fix(infra,statging): deploy version identified by input commit ref

* fix(infra): use commit ref whhere required

- have also removed the input for flows for review env
- have removed pull request trigger for review flows
  • Loading branch information
nutrina authored Apr 10, 2023
1 parent 6efeb3e commit b8f9d08
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci-prod-interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ on:
inputs:
# commit hash (for frontend deploy to Amplify)
commit:
description: "Branch/Commit ref"
default: "origin/main"
description: "Commit ref"
required: true
type: string

jobs:
ui-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit }}

- name: Install UI dependencies
working-directory: ./interface
Expand All @@ -27,6 +30,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit }}

- name: Checkout production-interface
run: |
git fetch
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/ci-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ name: Deploy API to Review
on:
push:
branches: [main]
workflow_dispatch:
inputs:
commit:
description: "Commit ref"
required: true
type: string

jobs:
test:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
inputs:
commit:
description: "Branch/Commit ref"
default: "origin/main"
default: ""
required: true
type: string

jobs:
Expand Down Expand Up @@ -143,6 +144,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit }}

- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Deploy Interface to Review
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
api-test:
Expand Down

0 comments on commit b8f9d08

Please sign in to comment.