Skip to content

Commit

Permalink
Add a shell script for publishing to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbergfalk committed Apr 24, 2018
1 parent 9e63341 commit d8d655a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker-publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
DOCKER_NAME=sqlpad/sqlpad
SQLPAD_VERSION=$(node -pe "require('./package.json').version")

docker build -t $DOCKER_NAME:latest .

docker tag $DOCKER_NAME:latest $DOCKER_NAME:$SQLPAD_VERSION

docker push $DOCKER_NAME:latest
docker push $DOCKER_NAME:$SQLPAD_VERSION

0 comments on commit d8d655a

Please sign in to comment.