Skip to content

Commit 75209b8

Browse files
author
Clindo
committed
Update Dockerfile
1 parent 6c5650d commit 75209b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ deploy:
3131
tags: true
3232
after_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;

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:8.4-alpine
22
MAINTAINER DUONG Dinh Cuong <cuong3ihut@gmail.com>
33

4-
ENV TAG_VERSION 0.0.2
4+
ENV TAG_VERSION 0.0.0
55

66
RUN 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 \

0 commit comments

Comments
 (0)