-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* retry * lets try this * no build * na most eskü * in reverse i guess? * maybe now * eee * next try * dont tell me that an env var... * finalize
- Loading branch information
Showing
5 changed files
with
69 additions
and
81 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,39 +6,39 @@ on: | |
- master | ||
|
||
jobs: | ||
# terraform: | ||
# name: Setup infrastructure in Azure with Terraform | ||
# defaults: | ||
# run: | ||
# working-directory: 'infra' | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: hashicorp/setup-terraform@v3 | ||
# with: | ||
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} | ||
terraform: | ||
name: Setup infrastructure in Azure with Terraform | ||
defaults: | ||
run: | ||
working-directory: 'infra' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: hashicorp/setup-terraform@v3 | ||
with: | ||
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} | ||
|
||
# - name: Terraform fmt | ||
# id: fmt | ||
# run: terraform fmt -check | ||
# continue-on-error: true | ||
- name: Terraform fmt | ||
id: fmt | ||
run: terraform fmt -check | ||
continue-on-error: true | ||
|
||
# - name: Terraform Init | ||
# id: init | ||
# run: terraform init | ||
- name: Terraform Init | ||
id: init | ||
run: terraform init | ||
|
||
# - name: Terraform Validate | ||
# id: validate | ||
# run: terraform validate -no-color | ||
- name: Terraform Validate | ||
id: validate | ||
run: terraform validate -no-color | ||
|
||
# - name: Terraform Apply | ||
# id: apply | ||
# run: terraform apply -no-color -auto-approve | ||
# continue-on-error: true | ||
- name: Terraform Apply | ||
id: apply | ||
run: terraform apply -no-color -auto-approve | ||
continue-on-error: true | ||
|
||
deploy_fa: | ||
name: Deploy backend code to Azure Function App | ||
# needs: terraform | ||
needs: terraform | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
|
@@ -52,16 +52,18 @@ jobs: | |
- name: 'Resolve Project Dependencies Using Npm' | ||
shell: bash | ||
run: | | ||
npm i @nx/[email protected] @nx/[email protected] @nx/[email protected] @nxazure/func@^1.0.17 [email protected] | ||
npx nx build functions | ||
cd packages/functions | ||
npm ci | ||
cd packages/functions && npm run build | ||
- name: 'Run Azure Functions Action' | ||
uses: Azure/functions-action@v1 | ||
id: fa | ||
with: | ||
respect-funcignore: true | ||
app-name: pontozo-api-tf | ||
package: . | ||
package: packages/functions | ||
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} | ||
|
||
# deploy_aswa: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
*.js.map | ||
*.ts | ||
.git* | ||
.vscode | ||
local.settings.json | ||
test | ||
.env | ||
node_modules/@types/ | ||
node_modules/azure-functions-core-tools/ | ||
node_modules/typescript/ | ||
packages/client/ | ||
packages/common/ | ||
docs/ | ||
infra/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.