34 lines
913 B
JSON
34 lines
913 B
JSON
{
|
|
"name": "personal-measure",
|
|
"steps": {
|
|
"buildApi": {
|
|
"artifacts": ["personal_measure_api"],
|
|
"containerImage": "nimlang/nim:0.19.4",
|
|
"stepCmd": "nimble build",
|
|
"workingDir": "api"
|
|
},
|
|
"buildWeb": {
|
|
"artifacts": ["pm-api-v${VERSION}.tar.gz"],
|
|
"containerImage": "node:lts-alpine",
|
|
"cmdInput": [
|
|
"npm install",
|
|
"npm run build",
|
|
"tar czf pm-api-v${VERSION}.tar.gz"
|
|
],
|
|
"workingDir": "web"
|
|
},
|
|
"deployApi": {
|
|
"containerImage": "garland/aws-cli-docker",
|
|
"cmdInput": [],
|
|
"depends": ["buildApi"],
|
|
"expectedEnv": ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_REGION"]
|
|
},
|
|
"deployWeb": {
|
|
"containerImage": "garland/aws-cli-docker",
|
|
"cmdInput": [],
|
|
"depends": ["buildWeb"],
|
|
"expectedEnv": ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_REGION"]
|
|
}
|
|
}
|
|
}
|