mirror of
https://github.com/vector-im/element-web.git
synced 2026-04-18 12:01:57 +02:00
* Tweak cd.yaml workflow * Tweak cd.yaml workflow * Iterate * Iterate * Iterate * Iterate * Remove debug
32 lines
1.3 KiB
JSON
32 lines
1.3 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "library",
|
|
"root": "packages/playwright-common",
|
|
"targets": {
|
|
"docker:prebuild": {
|
|
"cache": true,
|
|
"command": "echo PLAYWRIGHT_VERSION=$(pnpm --silent -- playwright --version | awk '{print $2}') > .env.docker:build",
|
|
"inputs": [{ "runtime": "pnpm --silent -- playwright --version" }],
|
|
"outputs": ["{projectRoot}/.env.docker:build"],
|
|
"options": { "cwd": "packages/playwright-common" }
|
|
},
|
|
"docker:build": {
|
|
"executor": "@nx-tools/nx-container:build",
|
|
"dependsOn": ["docker:prebuild"],
|
|
"options": {
|
|
"load": true,
|
|
"engine": "docker",
|
|
"platforms": ["linux/amd64", "linux/arm64"],
|
|
"provenance": "true",
|
|
"sbom": true,
|
|
"build-args": ["PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION"],
|
|
"context": "{projectRoot}",
|
|
"metadata": {
|
|
"images": ["ghcr.io/element-hq/element-web/playwright-server"],
|
|
"tags": ["type=ref,event=branch", "type=raw,enable={{is_default_branch}},value=$PLAYWRIGHT_VERSION"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|