From c5e480190776a48a3250cf50c890b9a106789cb8 Mon Sep 17 00:00:00 2001 From: Maxim Topciu Date: Mon, 29 Jul 2024 16:58:35 +0300 Subject: [PATCH] Add alpha deployments Merge in ADGUARD-FILTERS/tsurlfilter from feature/add_alpha_deployments to master Squashed commit of the following: commit 908110efebbb9c3206749dd68025bbb66994d842 Author: Maxim Topciu Date: Mon Jul 29 16:00:31 2024 +0300 add alpha deployments --- bamboo-specs/adguard-api-mv3-deploy.yaml | 41 +++++++++++++++++++++++- bamboo-specs/agtree-deploy.yaml | 40 +++++++++++++++++++++++ bamboo-specs/css-tokenizer-deploy.yaml | 41 ++++++++++++++++++++++++ bamboo-specs/tsurlfilter-deploy.yaml | 38 ++++++++++++++++++++++ bamboo-specs/tswebextension-deploy.yaml | 38 ++++++++++++++++++++++ 5 files changed, 197 insertions(+), 1 deletion(-) diff --git a/bamboo-specs/adguard-api-mv3-deploy.yaml b/bamboo-specs/adguard-api-mv3-deploy.yaml index d0e40d5c3..69d229722 100644 --- a/bamboo-specs/adguard-api-mv3-deploy.yaml +++ b/bamboo-specs/adguard-api-mv3-deploy.yaml @@ -1,3 +1,4 @@ +--- version: 2 deployment: name: Adguard API MV3 - deploy @@ -5,6 +6,7 @@ deployment: release-naming: ${bamboo.inject.version} environments: - npmjs + - npmjs • alpha npmjs: docker: @@ -41,4 +43,41 @@ npmjs: recipients: - webhook: name: Deploy webhook - url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo \ No newline at end of file + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo + +npmjs • alpha: + docker: + image: adguard/node-ssh:18.19--0 + volumes: + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" + triggers: [ ] + tasks: + - checkout: + force-clean-build: 'true' + - artifact-download: + artifacts: + - name: adguard-api-mv3.tgz + - script: + interpreter: SHELL + scripts: + - |- + set -e + set -x + + # Fix mixed logs + exec 2>&1 + + ls -alt + + export NPM_TOKEN=${bamboo.npmSecretToken} + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + npm publish adguard-api-mv3.tgz --tag alpha --access public + requirements: + - adg-docker: 'true' + notifications: + - events: + - deployment-started-and-finished + recipients: + - webhook: + name: Deploy webhook + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo diff --git a/bamboo-specs/agtree-deploy.yaml b/bamboo-specs/agtree-deploy.yaml index 3df652adb..2b6533713 100644 --- a/bamboo-specs/agtree-deploy.yaml +++ b/bamboo-specs/agtree-deploy.yaml @@ -6,6 +6,7 @@ deployment: release-naming: ${bamboo.inject.version} environments: - npmjs + - npmjs • alpha npmjs: docker: @@ -45,3 +46,42 @@ npmjs: - webhook: name: Deploy webhook url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo + +npmjs • alpha: + docker: + image: adguard/node-ssh:18.19--0 + volumes: + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" + triggers: [ ] + tasks: + - checkout: + force-clean-build: 'true' + # Download previously built tarball from Bamboo artifacts + - artifact-download: + artifacts: + - name: agtree.tgz + - script: + interpreter: SHELL + scripts: + - |- + set -e + set -x + + # Fix mixed logs + exec 2>&1 + + ls -alt + + # Publish tarball to NPM package registry + export NPM_TOKEN=${bamboo.npmSecretToken} + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + npm publish agtree.tgz --tag alpha --access public + requirements: + - adg-docker: 'true' + notifications: + - events: + - deployment-started-and-finished + recipients: + - webhook: + name: Deploy webhook + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo diff --git a/bamboo-specs/css-tokenizer-deploy.yaml b/bamboo-specs/css-tokenizer-deploy.yaml index c7bd3828c..922567383 100644 --- a/bamboo-specs/css-tokenizer-deploy.yaml +++ b/bamboo-specs/css-tokenizer-deploy.yaml @@ -6,6 +6,7 @@ deployment: release-naming: ${bamboo.inject.version} environments: - npmjs + - npmjs • alpha npmjs: docker: @@ -45,3 +46,43 @@ npmjs: - webhook: name: Deploy webhook url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo + +npmjs • alpha: + docker: + image: adguard/node-ssh:18.19--0 + volumes: + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" + triggers: [ ] + tasks: + - checkout: + force-clean-build: 'true' + # Download previously built tarball from Bamboo artifacts + - artifact-download: + artifacts: + - name: css-tokenizer.tgz + - script: + interpreter: SHELL + scripts: + - |- + set -e + set -x + + # Fix mixed logs + exec 2>&1 + + ls -alt + + # Publish tarball to NPM package registry + export NPM_TOKEN=${bamboo.npmSecretToken} + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + npm publish css-tokenizer.tgz --tag alpha --access public + requirements: + - adg-docker: 'true' + notifications: + - events: + - deployment-started-and-finished + recipients: + - webhook: + name: Deploy webhook + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo + diff --git a/bamboo-specs/tsurlfilter-deploy.yaml b/bamboo-specs/tsurlfilter-deploy.yaml index a755ec891..dfafd58c6 100644 --- a/bamboo-specs/tsurlfilter-deploy.yaml +++ b/bamboo-specs/tsurlfilter-deploy.yaml @@ -9,6 +9,7 @@ release-naming: ${bamboo.inject.version} environments: - npmjs • 1.x - npmjs • 2.x + - npmjs • alpha npmjs • 1.x: docker: @@ -83,3 +84,40 @@ npmjs • 2.x: - webhook: name: Deploy webhook url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo + +npmjs • alpha: + docker: + image: adguard/node-ssh:14.18--0 + volumes: + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" + triggers: [ ] + tasks: + - checkout: + force-clean-build: 'true' + - artifact-download: + artifacts: + - name: tsurlfilter.tgz + - script: + interpreter: SHELL + scripts: + - |- + set -e + set -x + + # Fix mixed logs + exec 2>&1 + + ls -alt + + export NPM_TOKEN=${bamboo.npmSecretToken} + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + npm publish tsurlfilter.tgz --tag alpha --access public + requirements: + - adg-docker: 'true' + notifications: + - events: + - deployment-started-and-finished + recipients: + - webhook: + name: Deploy webhook + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo diff --git a/bamboo-specs/tswebextension-deploy.yaml b/bamboo-specs/tswebextension-deploy.yaml index 10469a4e6..fa1d1bf74 100644 --- a/bamboo-specs/tswebextension-deploy.yaml +++ b/bamboo-specs/tswebextension-deploy.yaml @@ -6,6 +6,7 @@ deployment: release-naming: ${bamboo.inject.version} environments: - npmjs + - npmjs • alpha npmjs: docker: @@ -43,3 +44,40 @@ npmjs: - webhook: name: Deploy webhook url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo + +npmjs • alpha: + docker: + image: adguard/node-ssh:18.19--0 + volumes: + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" + triggers: [ ] + tasks: + - checkout: + force-clean-build: 'true' + - artifact-download: + artifacts: + - name: tswebextension.tgz + - script: + interpreter: SHELL + scripts: + - |- + set -e + set -x + + # Fix mixed logs + exec 2>&1 + + ls -alt + + export NPM_TOKEN=${bamboo.npmSecretToken} + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + npm publish tswebextension.tgz --tag alpha --access public + requirements: + - adg-docker: 'true' + notifications: + - events: + - deployment-started-and-finished + recipients: + - webhook: + name: Deploy webhook + url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo