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:
Mathieu Pillard 2022-09-28 11:00:17 +02:00 коммит произвёл GitHub
Родитель 6f85d2b35a
Коммит c5333a3316
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -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",