forked from rudderlabs/rudder-transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.dev.yml
26 lines (25 loc) · 890 Bytes
/
buildspec.dev.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
version: 0.2
phases:
install:
runtime-versions:
nodejs: 14
pre_build:
commands:
- docker login --username rudderlabs --password $DOCKERHUB_PASSWORD
build:
commands:
- VERSION=$(echo $CODEBUILD_WEBHOOK_HEAD_REF | sed 's/refs\/heads\///g' | tr "/" .)
- ls
- echo build Docker image on `date`
- docker build --build-arg version=${VERSION} -t rudderlabs/develop-rudder-transformer:$VERSION -f Dockerfile .
- docker run rudderlabs/develop-rudder-transformer:$VERSION npm run testDestinations
- docker run rudderlabs/develop-rudder-transformer:$VERSION npm run testVersionedRouter
- echo $?
post_build:
commands:
- echo build Docker image complete `date`
- echo push latest Docker images to docker hub...
- docker push rudderlabs/develop-rudder-transformer:$VERSION
artifacts:
files:
- "**/*"