Skip to content

Commit

Permalink
Add alpha deployments
Browse files Browse the repository at this point in the history
Merge in ADGUARD-FILTERS/tsurlfilter from feature/add_alpha_deployments to master

Squashed commit of the following:

commit 908110e
Author: Maxim Topciu <[email protected]>
Date:   Mon Jul 29 16:00:31 2024 +0300

    add alpha deployments
  • Loading branch information
maximtop committed Jul 29, 2024
1 parent 212dc56 commit c5e4801
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 1 deletion.
41 changes: 40 additions & 1 deletion bamboo-specs/adguard-api-mv3-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
version: 2
deployment:
name: Adguard API MV3 - deploy
source-plan: AJL-ADGUARDAPIMV3BUILD
release-naming: ${bamboo.inject.version}
environments:
- npmjs
- npmjs • alpha

npmjs:
docker:
Expand Down Expand Up @@ -41,4 +43,41 @@ npmjs:
recipients:
- webhook:
name: Deploy webhook
url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo
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
40 changes: 40 additions & 0 deletions bamboo-specs/agtree-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ deployment:
release-naming: ${bamboo.inject.version}
environments:
- npmjs
- npmjs • alpha

npmjs:
docker:
Expand Down Expand Up @@ -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
41 changes: 41 additions & 0 deletions bamboo-specs/css-tokenizer-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ deployment:
release-naming: ${bamboo.inject.version}
environments:
- npmjs
- npmjs • alpha

npmjs:
docker:
Expand Down Expand Up @@ -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

38 changes: 38 additions & 0 deletions bamboo-specs/tsurlfilter-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ release-naming: ${bamboo.inject.version}
environments:
- npmjs • 1.x
- npmjs • 2.x
- npmjs • alpha

npmjs • 1.x:
docker:
Expand Down Expand Up @@ -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
38 changes: 38 additions & 0 deletions bamboo-specs/tswebextension-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ deployment:
release-naming: ${bamboo.inject.version}
environments:
- npmjs
- npmjs • alpha

npmjs:
docker:
Expand Down Expand Up @@ -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

0 comments on commit c5e4801

Please sign in to comment.