From 72a61e45551c650637a05ff720be44e5534c4809 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 21 Jun 2021 11:35:39 +0100 Subject: [PATCH] adding docker staging tag to CI build to avoid polluting latest --- package.json | 2 +- packages/server/package.json | 1 + packages/worker/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aa4cc3e79b..cf9b12e8e9 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "lint:fix": "yarn run lint:fix:prettier && yarn run lint:fix:eslint", "test:e2e": "lerna run cy:test", "test:e2e:ci": "lerna run cy:ci", - "build:docker": "lerna run build:docker && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh && cd -", + "build:docker": "lerna run build:docker:staging && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh && cd -", "build:docker:staging": "lerna run build:docker && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh staging && cd -" } } diff --git a/packages/server/package.json b/packages/server/package.json index 25cfe508b6..2b0e4d7ada 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -13,6 +13,7 @@ "test:integration": "jest --coverage --detectOpenHandles", "test:watch": "jest --watch", "build:docker": "docker build . -t app-service", + "build:docker:staging": "docker build . -t app-service:staging", "run:docker": "node src/index", "dev:stack:up": "node scripts/dev/manage.js up", "dev:stack:down": "node scripts/dev/manage.js down", diff --git a/packages/worker/package.json b/packages/worker/package.json index 6cb480acd2..3e015de271 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -14,6 +14,7 @@ "scripts": { "run:docker": "node src/index.js", "build:docker": "docker build . -t worker-service", + "build:docker:staging": "docker build . -t worker-service:staging", "dev:stack:init": "node ./scripts/dev/manage.js init", "dev:builder": "npm run dev:stack:init && nodemon src/index.js", "test": "jest --runInBand"