-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
43 lines (37 loc) · 1.1 KB
/
wercker.yml
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
box: golang:1.10-stretch
dev:
steps:
- internal/watch:
code: |
go build ./...
./source
reload: true
build:
steps:
- wercker/golint
- script:
name: go build
code: |
CGO_ENABLED=0 go build -a -ldflags '-s' -installsuffix cgo -o $WERCKER_OUTPUT_DIR/simple-es-client .
cp $WERCKER_OUTPUT_DIR/simple-es-client $WERCKER_REPORT_ARTIFACTS_DIR
cp $WERCKER_SOURCE_DIR/load_es.sh $WERCKER_OUTPUT_DIR
cp $WERCKER_SOURCE_DIR/bulk-cities-es.txt $WERCKER_OUTPUT_DIR
push-ocir:
box:
id: alpine
cmd: /bin/sh
steps:
- script:
name: install dependencies
code: |
cp ./simple-es-client /
cp ./load_es.sh /
cp ./bulk-cities-es.txt /
apk --no-cache add curl
- internal/docker-push:
repository: iad.ocir.io/odx-pipelines/spinnaker/simple-es-client
tag: $WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT
registry: https://iad.ocir.io/v2
username: $OCIR_USERNAME
password: $OCIR_PASSWORD
cmd: /simple-es-client