Skip to content

Commit 34b55bd

Browse files
committed
chore: don't build static files if not deploying
1 parent 05f8942 commit 34b55bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ script:
2929
- npx vue-cli-service lint --no-fix
3030
- npx vue-cli-service test:unit
3131

32-
after_success:
33-
- npx vue-cli-service build --dest nginx/dist
34-
3532
deploy:
3633
skip_cleanup: true
3734
provider: script

scripts/deploy.sh

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ chmod +x ./kubectl
3939
sudo mv ./kubectl /usr/local/bin
4040
gcloud --quiet container clusters get-credentials dd-decaf
4141

42+
# Build the static files
43+
npx vue-cli-service build --dest nginx/dist
44+
4245
# Build the nginx image
4346
docker build -t ${IMAGE_REPO}:${TRAVIS_COMMIT::12} -t ${IMAGE_REPO}:${TRAVIS_BRANCH} nginx
4447
docker push ${IMAGE_REPO}:${TRAVIS_COMMIT::12}

0 commit comments

Comments
 (0)