From 680fd730238daaae0075a375a1ceb1147ba5b4f6 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Fri, 11 Aug 2017 16:37:17 -0400 Subject: [PATCH] feat: wercker docker steps --- wercker.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/wercker.yml b/wercker.yml index c79e2ee1..4f1916bb 100644 --- a/wercker.yml +++ b/wercker.yml @@ -37,12 +37,28 @@ deploy-github: - github-upload-asset: token: $GITHUB_TOKEN file: node_modules.tar.gz -deploy-docker: + +deploy-docker-master: steps: + - script: + name: remove dev dependencies + code: | + yarn install --production --ignore-scripts --prefer-offline - internal/docker-push: username: $DOCKER_HUB_USERNAME password: $DOCKER_HUB_PASSWORD - tag: latest + tag: latest, master + ports: "3000" + entrypoint: node server + repository: requarks/wiki + registry: https://registry.hub.docker.com + +deploy-docker-dev: + steps: + - internal/docker-push: + username: $DOCKER_HUB_USERNAME + password: $DOCKER_HUB_PASSWORD + tag: dev ports: "3000" entrypoint: node server repository: requarks/wiki