Compare commits

...

5 Commits

Author SHA1 Message Date
Vedant Madane
7a1772df55 docs: add multi-platform build example to README
Signed-off-by: Vedant Madane <vedantnm@gmail.com>
2026-05-02 16:23:04 +00:00
Tõnis Tiigi
e9a73d0538
Merge pull request #284 from crazy-max/esbuild
replace ncc with esbuild for action bundling
2026-04-24 10:40:24 -07:00
CrazyMax
39f273e99b
replace ncc with esbuild for action bundling
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-04-24 11:26:37 +02:00
Tõnis Tiigi
f8607cc714
Merge pull request #278 from crazy-max/fix-zizmor
ci(zizmor): update rules
2026-04-15 14:26:22 -07:00
CrazyMax
12ef543ef5
ci(zizmor): update rules
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-04-15 16:02:59 +02:00
13 changed files with 5917 additions and 1027 deletions

View File

@ -19,6 +19,8 @@ updates:
interval: "daily"
cooldown:
default-days: 2
exclude:
- "@docker/actions-toolkit"
versioning-strategy: "increase"
allow:
- dependency-type: "production"

3
.github/zizmor.yml vendored
View File

@ -1,3 +0,0 @@
rules:
secrets-outside-env: # FIXME: remove this rule when zizmor 1.24.0 is released, fixing the right persona attached to this rule: https://github.com/zizmorcore/zizmor/pull/1783
disable: true

View File

@ -13,6 +13,7 @@ GitHub Action to install [QEMU](https://github.com/qemu/qemu) static binaries.
___
* [Usage](#usage)
* [Multi-platform build example](#multi-platform-build-example)
* [Customizing](#customizing)
* [inputs](#inputs)
* [outputs](#outputs)
@ -47,6 +48,43 @@ jobs:
> name: Set up Docker Buildx
> uses: docker/setup-buildx-action@v4
> ```
### Multi-platform build example
The following example shows how to use this action to build and push a multi-platform image for `linux/amd64` and `linux/arm64` using [Buildx](https://github.com/docker/buildx):
```yaml
name: ci
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: user/app:latest
platforms: linux/amd64,linux/arm64
```
## Customizing

View File

@ -26,5 +26,5 @@ outputs:
runs:
using: 'node24'
main: 'dist/index.js'
post: 'dist/index.js'
main: 'dist/index.cjs'
post: 'dist/index.cjs'

136
dist/index.cjs generated vendored Normal file

File diff suppressed because one or more lines are too long

7
dist/index.cjs.map generated vendored Normal file

File diff suppressed because one or more lines are too long

16
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

1
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

5397
dist/licenses.txt generated vendored

File diff suppressed because it is too large Load Diff

3
dist/package.json generated vendored
View File

@ -1,3 +0,0 @@
{
"type": "module"
}

1
dist/sourcemap-register.cjs generated vendored

File diff suppressed because one or more lines are too long

View File

@ -4,10 +4,11 @@
"type": "module",
"main": "src/main.ts",
"scripts": {
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify && yarn run license",
"lint": "eslint --max-warnings=0 .",
"format": "eslint --fix .",
"test": "vitest run"
"test": "vitest run",
"license": "generate-license-file --input package.json --output dist/licenses.txt --overwrite --ci --no-spinner --eol lf"
},
"repository": {
"type": "git",
@ -30,12 +31,13 @@
"@types/node": "^24.11.0",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vercel/ncc": "^0.38.4",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/eslint-plugin": "^1.6.9",
"esbuild": "^0.28.0",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"generate-license-file": "^4.1.1",
"globals": "^17.3.0",
"prettier": "^3.8.1",
"typescript": "^5.9.3",

1318
yarn.lock

File diff suppressed because it is too large Load Diff