Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
russdaygh committed Apr 22, 2024
1 parent 37b3ea4 commit 715b405
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/DeployEverything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ on:
secrets:
AZURE_CREDENTIALS:
required: true
type: string
AZURE_STATIC_WEB_APPS_API_TOKEN:
required: true
type: string

env:
AZURE_WEBAPP_PACKAGE_PATH: PocketDDD.Server.WebAPI/publish
Expand All @@ -31,8 +29,8 @@ jobs:
- name: Setup terraform
uses: hashicorp/setup-terraform@v3
- run: |
cd ./terraform
terraform init
cd ./terraform
terraform init
- run: terraform apply -auto-approve --var-file ../tfvars/${{ inputs.env }}.tfvars

build_api_server:
Expand Down Expand Up @@ -62,7 +60,7 @@ jobs:
name: Deploy API Server
runs-on: ubuntu-latest
environment: ${{ inputs.env }}
needs: build
needs: [deploy_terraform, build_api_server]
steps:
- name: Log in with Azure
uses: azure/login@v1
Expand All @@ -83,6 +81,7 @@ jobs:
runs-on: ubuntu-latest
environment: ${{ inputs.env }}
name: Build and Deploy Blazor Client
needs: deploy_terraform
steps:
- uses: actions/checkout@v2
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/DeployPullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ on:

jobs:
deploy_to_dev:
environment: dev
uses: ./.github/workflows/DeployEverything.yml
with:
env: dev
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
secrets: inherit

0 comments on commit 715b405

Please sign in to comment.