Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
Kevin Meinhardt 84d514e744
Remove version.json file from host environment (#22571)
* Remove version.json file from host environment

* tmp: fix

* TMP: fix tests

* TMP: remove unecessary test

* TMP: fix test for get_version_json

* TMP: fixy
2024-08-21 10:33:31 +02:00
Kevin Meinhardt 564b67bdcd
Remove -next suffix from image tags (#22568)
fixes: mozilla/addons#14964
2024-08-14 11:31:04 +02:00
Kevin Meinhardt a80e4c6350
Push production docker images to both registries (#22546)
* test patch

* TMP: test using the branch in all cases.

* TMP: update event action condition
2024-08-07 18:32:30 +02:00
Kevin Meinhardt 42160ee861
Mozilla/addons/issues/14823-build-bake (#22453)
* Split build and authentication from _build.yml to separate actions, remove _build.yml

* Push production Docker images in CI

* TMP: Provide fallback for non fork CI image build name
2024-07-11 15:05:52 +02:00
Kevin Meinhardt 0d7ae9d568
Use reusable workflow for executing docker build (#22446)
* Use composite workflow for executing docker build

* TMP: unify inputs for _build
2024-07-09 11:03:44 +02:00
Kevin Meinhardt de25c329f7
Split test jobs to callable workflows (#22434)
* Split test jobs to callable workflows

TMP: fix splits value

TMP: remove other jobs

Use number

TMP: remove comments

* Organize _test jobs via strategy matrix
2024-07-03 13:00:42 +02:00
Kevin Meinhardt 8fc73b3a30
Split tests for faster execution (#22318)
* Split tests for faster execution

* TMP: remove uneeded step

* TMP: revert remove assertNumQueries

* TMP: sort directories for logs

* TMP: Missing }

* TMP: unify default splits
2024-06-13 16:59:58 +02:00
Kevin Meinhardt 7b94d8f736
Add version suffix and enable push on master (#22331)
* Add prefix and enable push on master

* Update .github/actions/build-docker/action.yml

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-06-06 18:44:09 +02:00
Kevin Meinhardt 299dc4922b
More efficient utilization of github action cache (#22314)
* More efficient utilization of github action cache

* Set cache from/to only in CI

* Update Dockerfile

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-06-05 14:48:42 +02:00
Kevin Meinhardt f4bdaec5bb
Add configurable compose file to make up flow (#22299) 2024-05-30 13:02:26 +02:00
Kevin Meinhardt 6b3b067097
Cache ./deps directory in CI to speed up installation (#22280) 2024-05-30 12:52:54 +02:00
Kevin Meinhardt ddade2a62b
Fix Docker build and add concurrency limit (#22273)
* Fix Docker build:
- get correct Image ID from the build.
- set docker tag correctly supporting tag and digest
- add concurrency limit to github action ci jobs

* TMP: remove easy way to get build digest as it is not really intended for local dev

* Update .circleci/config.yml

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* TMP: recomment build

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-05-24 10:09:09 +02:00
Kevin Meinhardt d3b3a50ac5
Docker digest (#22260)
* Refactor unified setup script to manage .env and version.json files in readable python

* Support using digest to run docker image

* Update scripts/setup.py

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* TMP: build image

* TMP: better logs

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-05-21 13:02:19 +02:00
Kevin Meinhardt 96424c9bea
Run actions with docker compose (#22248) 2024-05-16 17:26:46 +02:00
Mathieu Pillard 3f88010a5b
Upgrade to python 3.11 (#22247)
* Upgrade to python 3.11
2024-05-16 14:53:15 +02:00
Kevin Meinhardt c4f4ba6487
"Fix makefile env variables definition" (#22246)
* TMP: refactor buildx bake definition and test

* TMP: better initialization and organization of make file env vars (docker relevant +)

* TMP: cleaner code.

* TMP: remove build
2024-05-16 14:49:37 +02:00
Kevin Meinhardt 6212cc2c9e
Use environment variables to configure docker compose variable properties and build with bake (#22225)
* Remove redundant docker-cache directory

* Use environment variables to configure docker compose variable properties
2024-05-10 09:44:54 +02:00
Kevin Meinhardt 42513e191e
Use consistent and robust mapping of UID between host and container: (#22206)
* Use consistent and robust mapping of UID between host and container:
- collapse UID/GID to one value on host and container
- rename host value to HOST_UID for clarity and debugability
- rename fix_olympia_user to entrypoint and set as docker compose entrypoint
- uwsgi config to use runtime value of olympia UID/GID

* Docker compose fail after 5 attempts to start

* TMP: update outdated comment

* TMP: comment the entrypoint
2024-05-06 14:07:55 +02:00
Kevin Meinhardt 9879a4defa
Add "build" to version.json (#22205)
* Add "build" to version.json

* Add test for version.json in the docker container
2024-04-29 17:41:59 +02:00
Kevin Meinhardt 541e0bdacb
Generate version.json as part of docker build: (#22186)
* Generate version.json as part of docker build:
- remove git dependency from version.json generation
- use only version.json file for sentry release with soft/hard fail

* TMP: remove invalid comment

* TMP: Prefix branch tags

* TMP: re-comment the ci build in circle
2024-04-26 17:23:05 +02:00
Kevin Meinhardt 43cc39fdb6
Build docs in docker container (#22101)
* Build docs in docker (now failing from the npm check)

* Remove setup-environment github action
2024-04-02 15:46:21 +02:00
Kevin Meinhardt 2d7848b2af
Fix build docker image action (#22020)
* Fix build docker image action

* Remove short sha from tag

We already include the full git revision in a label in the container and we can fetch a specific revision of a tag from dockerhub via the digest ID

---------

Co-authored-by: Mozilla Add-ons Robot <addons-dev-automation+github@mozilla.com>
2024-03-19 12:44:22 +01:00
Kevin Meinhardt 7f1ff51138
Automate L10n extract/merge with reusable docker run github action (#21966)
* Reusable Docker run action (Bunch of other stuff here to make it work)

* extract locales

* remove extraneous log

---------

Co-authored-by: Mozilla Add-ons Robot <addons-dev-automation+github@mozilla.com>
2024-03-18 11:42:04 +01:00
Kevin Meinhardt 9e155b78ca
github action to efficiently build docker image on PRs to verify build and push on workflow_dispatch (#21930)
* github action to efficiently build docker image on PRs to verify build

* Add workflow to build/push docker image manually from github.

* Update .github/actions/build-docker/action.yml

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* Update .github/workflows/build-docker-image.yml

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-02-29 14:08:53 +01:00
Kevin Meinhardt cc65471af3
Deploy documentation site with github pages
* Install setuptools and wheels before installing olympia module

These packages are required to install olympia and are only available after pip installing our requirements txt files. This apparently only breaks on host builds.

* Github composite action to setup environment for non docker actions

* GIthub workflow to deploy docs to gh pages
2024-02-28 16:33:25 +01:00