forked from rudderlabs/rudder-transformer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuildspec.dev.yml
31 lines (30 loc) · 998 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
27
28
29
30
31
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}
--build-arg GIT_COMMIT_SHA=$CODEBUILD_RESOLVED_SOURCE_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:
- "**/*"