File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,5 +31,6 @@ deploy:
3131 tags : true
3232after_deploy :
3333- |-
34+ sed -i "s|0.0.0|${TRAVIS_TAG}|" Dockerfile
3435 if [ $DOCKER_HUB_USERNAME ]; then docker login --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD;
3536 if [ ! -z "$TRAVIS_TAG" ]; then DOCKER_IMAGE_TAG=$TRAVIS_TAG; else DOCKER_IMAGE_TAG=latest; fi; docker build -t $DOCKER_IMAGE_NAME .; if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; docker push $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; docker tag $DOCKER_IMAGE_NAME $DOCKER_IMAGE_NAME:latest; docker push $DOCKER_IMAGE_NAME:latest; else docker tag $DOCKER_IMAGE_NAME $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; docker push $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; fi; fi;
Original file line number Diff line number Diff line change 11FROM node:8.4-alpine
22MAINTAINER DUONG Dinh Cuong <cuong3ihut@gmail.com>
33
4- ENV TAG_VERSION 0.0.2
4+ ENV TAG_VERSION 0.0.0
55
66RUN apk --update add wget && wget --no-check-certificate https://github.com/opengate-io/specs-generator/releases/download/${TAG_VERSION}/specs-generator-${TAG_VERSION}.tgz \
77 && npm install --prefix /opt specs-generator-${TAG_VERSION}.tgz \
You can’t perform that action at this time.
0 commit comments