Fix docker image to include useful dotfiles (#11854)
* Run bundlewatch on master/tag releases using the docker image * Only ignore .git, not all dotfiles (and especially not .browserlistrc)
This commit is contained in:
Родитель
6f85d2b35a
Коммит
c5333a3316
|
@ -147,7 +147,7 @@ jobs:
|
|||
name: publish package
|
||||
command: cd dist && npm publish
|
||||
|
||||
release-tag: # build for the master branch and tags
|
||||
release-tag: # build for the tags
|
||||
<<: *defaults-release
|
||||
steps:
|
||||
- checkout
|
||||
|
@ -180,7 +180,10 @@ jobs:
|
|||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker build --pull -t addons-frontend .
|
||||
- run: docker images
|
||||
- run: docker run --rm addons-frontend node --version
|
||||
- run:
|
||||
name: Build the app and check bundlesize from container
|
||||
command: |
|
||||
docker run --rm addons-frontend yarn build-ci
|
||||
- run:
|
||||
name: Write the sha256 sum to an artifact for verification
|
||||
command: |
|
||||
|
@ -210,7 +213,7 @@ jobs:
|
|||
./tests/smoke/setup_docker.sh
|
||||
tox -e smoke-tests
|
||||
|
||||
release-master: # build for the master branch and tags
|
||||
release-master: # build for the master branch
|
||||
<<: *defaults-release
|
||||
steps:
|
||||
- checkout
|
||||
|
@ -243,7 +246,10 @@ jobs:
|
|||
docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
docker build --pull -t addons-frontend .
|
||||
- run: docker images
|
||||
- run: docker run --rm addons-frontend node --version
|
||||
- run:
|
||||
name: Build the app and check bundlesize from container
|
||||
command: |
|
||||
docker run --rm addons-frontend yarn build-ci
|
||||
- run:
|
||||
name: Write the sha256 sum to an artifact for verification
|
||||
command: |
|
||||
|
|
|
@ -1 +1 @@
|
|||
.*/
|
||||
.git
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"build:blog-utils-prod": "NODE_ENV=production npm run build:blog-utils",
|
||||
"build:qrcodes": "npm run clean && bin/fenix-qr-codes.js",
|
||||
"build-check": "bin/build-checks.js",
|
||||
"build-ci": "npm run build && npm run bundlewatch",
|
||||
"build-ci": "node --version && npm run build && npm run bundlewatch",
|
||||
"build-locales": "bin/build-locales",
|
||||
"bundlewatch": "bundlewatch",
|
||||
"extract-locales": "better-npm-run extract-locales",
|
||||
|
|
Загрузка…
Ссылка в новой задаче