-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
47 lines (40 loc) · 939 Bytes
/
app.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
init:
appPath: $Pwd()/myapp
pipeline:
setTarget:
action: exec:setTarget
URL: ssh://127.0.0.1
credentials: dev
setSdk:
action: sdk:set
sdk: go:1.12
build:
action: exec:run
checkError: true
terminators:
- Password
- Username
secrets:
gitSecrets: git-myaccount
commands:
- cd $appPath
- export GIT_TERMINAL_PROMPT=1
- ls *
- $cmd[2].stdout:/myapp/? rm myapp
- export GO111MODULE=on
- go build -o myapp
- '$cmd[5].stdout:/Username/? $gitSecrets.username'
- '$cmd[6].stdout:/Password/? $gitSecrets.password'
- '$cmd[7].stdout:/Username/? $gitSecrets.username'
- '$cmd[8].stdout:/Password/? $gitSecrets.password'
stop:
action: process:stop
input: myapp
start:
action: process:start
directory: $appPath/
env:
PORT: 8081
watch: true
immuneToHangups: true
command: ./myapp