Compare commits
2 Commits
04077d95f4
...
ee6d423fc3
| Author | SHA1 | Date | |
|---|---|---|---|
| ee6d423fc3 | |||
| 9d77b1a669 |
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"projects": {
|
"projects": {
|
||||||
"default": "fitlien-dev"
|
"default": "fitlien-dev",
|
||||||
|
"prod": "fitlien"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- master
|
- main
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: "ubuntu-latest"
|
vmImage: "ubuntu-latest"
|
||||||
@ -17,10 +17,10 @@ steps:
|
|||||||
inputs:
|
inputs:
|
||||||
targetType: "inline"
|
targetType: "inline"
|
||||||
script: |
|
script: |
|
||||||
Write-Host "##vso[build.updatebuildnumber]${{ parameters.buildNumber }}"
|
Write-Host "##vso[build.updatebuildnumber]$(buildNumber)"
|
||||||
|
|
||||||
- task: NodeTool@0
|
- task: UseNode@1
|
||||||
displayName: "Install Node"
|
displayName: "Setting up node"
|
||||||
inputs:
|
inputs:
|
||||||
version: "20"
|
version: "20"
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ steps:
|
|||||||
targetType: "inline"
|
targetType: "inline"
|
||||||
script: |
|
script: |
|
||||||
$pkg = Get-Content -Path "$(System.DefaultWorkingDirectory)/functions/package.json" -Raw | ConvertFrom-Json
|
$pkg = Get-Content -Path "$(System.DefaultWorkingDirectory)/functions/package.json" -Raw | ConvertFrom-Json
|
||||||
$pkg.version = "${{ parameters.buildNumber }}"
|
$pkg.version = "$(buildNumber)"
|
||||||
$pkg | ConvertTo-Json -Depth 100 | Set-Content -Path "$(System.DefaultWorkingDirectory)/functions/package.json"
|
$pkg | ConvertTo-Json -Depth 100 | Set-Content -Path "$(System.DefaultWorkingDirectory)/functions/package.json"
|
||||||
|
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
@ -44,12 +44,11 @@ steps:
|
|||||||
script: |
|
script: |
|
||||||
cp "$(System.DefaultWorkingDirectory)/functions/.env.example" "$(System.DefaultWorkingDirectory)/functions/.env"
|
cp "$(System.DefaultWorkingDirectory)/functions/.env.example" "$(System.DefaultWorkingDirectory)/functions/.env"
|
||||||
|
|
||||||
- task: ReplaceTokens@3
|
- task: replacetokens@6
|
||||||
displayName: "Replace tokens in .env file"
|
displayName: "Replace tokens in .env file"
|
||||||
inputs:
|
inputs:
|
||||||
targetFiles: "$(System.DefaultWorkingDirectory)/functions/.env"
|
root: "$(System.DefaultWorkingDirectory)/functions/"
|
||||||
tokenPrefix: "#{"
|
sources: .env
|
||||||
tokenSuffix: "}#"
|
|
||||||
|
|
||||||
- task: Npm@1
|
- task: Npm@1
|
||||||
displayName: "npm run build"
|
displayName: "npm run build"
|
||||||
@ -81,3 +80,9 @@ steps:
|
|||||||
SourceFolder: "$(System.DefaultWorkingDirectory)"
|
SourceFolder: "$(System.DefaultWorkingDirectory)"
|
||||||
Contents: "fitlien-services-$(buildNumber).zip"
|
Contents: "fitlien-services-$(buildNumber).zip"
|
||||||
TargetFolder: "$(System.ArtifactsDirectory)"
|
TargetFolder: "$(System.ArtifactsDirectory)"
|
||||||
|
|
||||||
|
- task: CmdLine@2
|
||||||
|
displayName: "install firebase tools"
|
||||||
|
inputs:
|
||||||
|
script: curl -sL firebase.tools | upgrade=true bash
|
||||||
|
workingDirectory: $(Agent.ToolsDirectory)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
MAILGUN_API_KEY=#{MAILGUN_API_KEY}#
|
MAILGUN_API_KEY=#{MAILGUN_API_KEY}#
|
||||||
MAILGUN_SERVER=#{MAILGUN_SERVER}#
|
MAILGUN_SERVER=#{MAILGUN_SERVER}#
|
||||||
MAILGUN_FROM_ADDRESS=#{MAILGUN_FROM_ADDRESS}#
|
MAILGUN_FROM_ADDRESS=#{MAILGUN_FROM_ADDRESS}#
|
||||||
TWILIO_ACCOUNT_SID=AC5cfaae728ba68fb1aa6756d973b6e32b
|
TWILIO_ACCOUNT_SID=#{TWILIO_ACCOUNT_SID}#
|
||||||
TWILIO_AUTH_TOKEN=886ed704c7918078f361f5f88b42ffc0
|
TWILIO_AUTH_TOKEN=#{TWILIO_ACCOUNT_SID}#
|
||||||
TWILIO_PHONE_NUMBER=+12315005309
|
TWILIO_PHONE_NUMBER=#{TWILIO_PHONE_NUMBER}#
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user