-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathazure.yaml
More file actions
27 lines (27 loc) · 705 Bytes
/
Copy pathazure.yaml
File metadata and controls
27 lines (27 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: ghcp-dashboard
metadata:
template: ghcp-dashboard
services:
web:
project: ./app
language: ts
host: containerapp
docker:
path: ./Dockerfile
context: .
remoteBuild: false
buildArgs:
- BUILD_ID=${BUILD_ID}
- BUILD_TIME=${BUILD_TIME}
hooks:
prepackage:
posix:
shell: sh
run: |
[ -z "$BUILD_ID" ] && azd env set BUILD_ID 1
azd env set BUILD_TIME "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
windows:
shell: pwsh
run: |
if (-not $env:BUILD_ID) { azd env set BUILD_ID 1 }
azd env set BUILD_TIME (Get-Date -Format 'yyyy-MM-ddTHH:mm:ssZ' -AsUTC)