Skip to content

Commit

Permalink
chore: fix branch deployment to testing server
Browse files Browse the repository at this point in the history
Signed-off-by: Otieno Calvine <nyarangaotieno@gmail.com>
  • Loading branch information
NYARAS committed Sep 2, 2021
1 parent a60cebd commit 6e25484
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
build_and_push_image:
runs-on: ubuntu-latest
environment:
name: test, staging, production # run only in these three environment
name: test # staging, production run only in these three environment
# TODO: add develop
if: contains(github.head_ref, 'opensource') || contains(github.head_ref, 'main')
# if: contains(github.head_ref, 'opensource') || contains(github.head_ref, 'main')
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
environment:
name: test
# TODO: add develop
if: contains(github.head_ref, 'opensource')
# if: contains(github.head_ref, 'opensource')
needs: [build_and_push_image]
steps:
- name: Checkout working branches
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
environment:
name: staging
needs: [build_and_push_image]
if: contains(github.head_ref, 'opensource')
# if: contains(github.head_ref, 'opensource')
steps:
- name: Checkout working branches
uses: actions/checkout@v2
Expand Down

0 comments on commit 6e25484

Please sign in to comment.