Merge pull request #285 from Osmose/approval-workflow
Require manual approval to upload XPI files to Test Pilot.
This commit is contained in:
Коммит
5de3a2c668
|
@ -37,7 +37,7 @@ jobs:
|
||||||
paths:
|
paths:
|
||||||
- "*.zip"
|
- "*.zip"
|
||||||
|
|
||||||
deploy:
|
sign:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:2.7-node-browsers
|
- image: circleci/python:2.7-node-browsers
|
||||||
steps:
|
steps:
|
||||||
|
@ -60,12 +60,32 @@ jobs:
|
||||||
-o "web-ext-artifacts/${XPI_NAME}-signed.xpi" \
|
-o "web-ext-artifacts/${XPI_NAME}-signed.xpi" \
|
||||||
-H "Authorization: ${AUTOGRAPH_EDGE_TOKEN}" \
|
-H "Authorization: ${AUTOGRAPH_EDGE_TOKEN}" \
|
||||||
${AUTOGRAPH_EDGE_URL}
|
${AUTOGRAPH_EDGE_URL}
|
||||||
- run:
|
- persist_to_workspace:
|
||||||
name: Upload XPI to S3
|
root: web-ext-artifacts
|
||||||
command: .circleci/deploy_addon.sh
|
paths:
|
||||||
|
- "*.xpi"
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: web-ext-artifacts
|
path: web-ext-artifacts
|
||||||
|
|
||||||
|
upload:
|
||||||
|
docker:
|
||||||
|
- image: circleci/python:2.7-node-browsers
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: web-ext-artifacts
|
||||||
|
- run:
|
||||||
|
name: Store XPI name in environment variable
|
||||||
|
command: |
|
||||||
|
echo 'export XPI_NAME=price_wise-${CIRCLE_TAG:1}' >> $BASH_ENV
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: |
|
||||||
|
pipenv install
|
||||||
|
- run:
|
||||||
|
name: Upload XPI to S3
|
||||||
|
command: echo "hooray!" # .circleci/deploy_addon.sh
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build-deploy:
|
build-deploy:
|
||||||
|
@ -74,7 +94,7 @@ workflows:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
- deploy: # runs only for tags starting with v
|
- sign: # runs only for tags starting with v
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
filters:
|
filters:
|
||||||
|
@ -82,3 +102,10 @@ workflows:
|
||||||
only: /^v.*/
|
only: /^v.*/
|
||||||
branches:
|
branches:
|
||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
|
- hold: # Require manual approval before uploading
|
||||||
|
type: approval
|
||||||
|
requires:
|
||||||
|
- sign
|
||||||
|
- upload:
|
||||||
|
requires:
|
||||||
|
- hold
|
||||||
|
|
Загрузка…
Ссылка в новой задаче