Skip to content

Commit 60c558c

Browse files
committed
deploy only ALIS_APP_ID exists
1 parent a5eaf69 commit 60c558c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.circleci/config.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,21 @@ jobs:
5858
- run:
5959
name: make deploy package
6060
command: |
61-
docker image build --tag deploy-image .
62-
docker container run -it --name deploy-container deploy-image
63-
docker container cp deploy-container:/workdir/vendor-package .
64-
. venv/bin/activate
65-
python make_deploy_zip.py
61+
if [ $ALIS_APP_ID ]; then
62+
docker image build --tag deploy-image .
63+
docker container run -it --name deploy-container deploy-image
64+
docker container cp deploy-container:/workdir/vendor-package .
65+
. venv/bin/activate
66+
python make_deploy_zip.py
67+
fi
6668
6769
- run:
6870
name: run deploy
6971
command: |
70-
. venv/bin/activate
71-
./deploy.sh api
72+
if [ $ALIS_APP_ID ]; then
73+
. venv/bin/activate
74+
./deploy.sh api
75+
fi
7276
7377
- store_artifacts:
7478
path: test-reports

0 commit comments

Comments
 (0)