Some checks failed
Docker / Docker Buildx (push) Has been cancelled
Build Debian package / Build package (release) Has been cancelled
Build and Deploy / prepare (release) Has been cancelled
Deploy release / Deploy to Cloudflare Pages (release) Has been cancelled
Build and Deploy / Trigger Pro pipeline (release) Has been cancelled
Build and Deploy / Windows arm64 (release) Has been cancelled
Build and Deploy / Windows x64 (release) Has been cancelled
Build and Deploy / macOS (release) Has been cancelled
Build and Deploy / Linux amd64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / Linux arm64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / ${{ needs.prepare.outputs.deploy == 'true' && 'Deploy' || 'Deploy (dry-run)' }} (release) Has been cancelled
Build and Deploy / Deploy builds to ESS (release) Has been cancelled
45 lines
1.7 KiB
JSON
45 lines
1.7 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "library",
|
|
"root": "packages/playwright-common",
|
|
"targets": {
|
|
"build:playwright": {
|
|
"cache": true,
|
|
"command": "tsc",
|
|
"inputs": ["src"],
|
|
"outputs": ["{projectRoot}/lib"],
|
|
"options": { "cwd": "packages/playwright-common" },
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"lint:types": {
|
|
"command": "pnpm exec tsc --noEmit",
|
|
"options": { "cwd": "packages/playwright-common" },
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"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"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|