Skip to content

Commit

Permalink
Run deploy only after unit test and docker build (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl authored Apr 16, 2024
1 parent 27f53ff commit 952266e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
defaults:
run:
shell: bash
needs: [docker_build_push]
if: github.ref_name == 'main' || github.ref_name == 'dev'
env:
GITHUB_USERNAME: ${{ github.actor }}
Expand Down Expand Up @@ -132,6 +133,7 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write
needs: [docker_build_push]
if: github.ref_name == 'main' || github.ref_name == 'dev'
env:
STAGING_BACKEND_DOMAIN: ${{ vars.STAGING_BACKEND_DOMAIN }}
Expand Down
2 changes: 0 additions & 2 deletions scripts/deploy_backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ check_variable "BACKEND_DOMAIN"
check_variable "PORT"
check_variable "DATABASE_URL"
check_variable "WASP_WEB_CLIENT_URL"
check_variable "WASP_SERVER_URL"
check_variable "JWT_SECRET"
check_variable "STRIPE_KEY"
check_variable "PRO_SUBSCRIPTION_PRICE_ID"
Expand Down Expand Up @@ -61,7 +60,6 @@ $ssh_command "docker run --name $container_name -p $PORT:$PORT -e PORT='$PORT' \
-e DATABASE_URL='$DATABASE_URL' -e WASP_WEB_CLIENT_URL='$WASP_WEB_CLIENT_URL' \
-e JWT_SECRET='$JWT_SECRET' -e GOOGLE_CLIENT_ID='$GOOGLE_CLIENT_ID' \
-e GOOGLE_CLIENT_SECRET='$GOOGLE_CLIENT_SECRET' \
-e WASP_SERVER_URL='$WASP_SERVER_URL' \
-e STRIPE_KEY='$STRIPE_KEY' -e PRO_SUBSCRIPTION_PRICE_ID='$PRO_SUBSCRIPTION_PRICE_ID' \
-e STRIPE_WEBHOOK_SECRET='$STRIPE_WEBHOOK_SECRET' -e ADMIN_EMAILS='$ADMIN_EMAILS' \
-d ghcr.io/$GITHUB_REPOSITORY:$TAG"

0 comments on commit 952266e

Please sign in to comment.