28 Commits (isekai-main)

Author SHA1 Message Date
Opliko 412a1ecf93
ci: use GitHub Actions expression instead of handlebars template (#11599)
Apparently Docker Meta Actions overrides, not merely adds, handlebars helpers. So `#if` just doesn't exist and errors out...

As such here is an equivalent using GitHub Actions expression (and this time I tested that it works...)
2 years ago
Opliko cd7fdfcefd ci: tag with branch name if not default branch
This should prevent failed runs like https://github.com/NodeBB/NodeBB/actions/runs/4959641483
2 years ago
Opliko 163c977d2f ci: add 3.x docker tag 2 years ago
Opliko c588d741ba ci: only publish latest from master
`latest` tag is currently v2. That happened because of the backported change which is newer than any commits to `master`.

However, this logically shouldn't happen. The expectation for latest would be that it has the, well, the code from the highest version released, not literally the latest commit no matter where it came from. Thankfully metadata action allows for conditional tags and even has a helper for default branch making it not hard-coded (so if NodeBB decided to migrate to `main` or someone in their fork did it'd still work).

The result would be that latest is the latest code in `master`, which I see as similar to the default git workflow (`master` is just latest code, `vX.Y` branches or tags are for using proper releases).
2 years ago
Opliko 0417e5f16c
ci: multi-platform docker image (#11479)
* ci: multi-platform build

* ci: remove riscv as node doesn't support it

* ci: correct step name

it's no longer logging in to docker hub

* ci: remove less common architectures

* ci: github actions cache for docker builds

* fix: use `--omit` flag to actually avoid installing dev dependencies

* feat: two-stage build

* feat: add platform-specific rebuild

* fix: run install if target arch is different from build arch

* fix: whitespace

* fix: correct build order

* fix: remove unnecessary conditional

* fix: remove unnecessary platofm specifier

* fix: correct copy
2 years ago
Barış Soner Uşaklı 1b98995132 Merge branch 'master' into develop 2 years ago
Opliko c27567289f ci: publish to ghcr instead of docker hub 2 years ago
renovate[bot] 8ddb302f20
chore(deps): update docker/build-push-action action to v4 (#11245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2 years ago
Barış Soner Uşaklı 02ef3e974c
Esbuild (#10940)
* ci: add minimum GitHub token permissions for workflows
Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>

* feat: use esbuild for minification

Co-authored-by: Ashish Kurmi <akurmi@stepsecurity.io>
2 years ago
Julian Lam 2568986c58 Revert "Revert "chore(deps): update docker/build-push-action action to v3""
This reverts commit d2c2f333e1.
2 years ago
Julian Lam 9d446f9282 Revert "Revert "chore(deps): update docker/login-action action to v2""
This reverts commit 887df0e62b.
2 years ago
Julian Lam c71335218b Revert "Revert "chore(deps): update docker/setup-buildx-action action to v2""
This reverts commit 8936f412d1.
2 years ago
renovate[bot] 4aecf399eb chore(deps): update docker/setup-qemu-action action to v2 2 years ago
Julian Lam 8936f412d1 Revert "chore(deps): update docker/setup-buildx-action action to v2"
This reverts commit 371ac03220.
2 years ago
Julian Lam 887df0e62b Revert "chore(deps): update docker/login-action action to v2"
This reverts commit 3d68accf99.
2 years ago
Julian Lam d2c2f333e1 Revert "chore(deps): update docker/build-push-action action to v3"
This reverts commit bfd6318cd6.
2 years ago
renovate[bot] bfd6318cd6 chore(deps): update docker/build-push-action action to v3 2 years ago
renovate[bot] 3d68accf99 chore(deps): update docker/login-action action to v2 2 years ago
renovate[bot] 371ac03220 chore(deps): update docker/setup-buildx-action action to v2 2 years ago
Renovate Bot 42a45a71f4 chore(deps): update docker/metadata-action action to v4 3 years ago
Julian Lam 944a798552 fix: also launch docker workflow on release branches 3 years ago
Antosik b06e8dba7b fix: docker - remove sha tag 3 years ago
Antosik 52eace4b38 fix: Return QEMU back, remove platforms definition 3 years ago
Anton Grigoryev e7f4cde466
Fix: Docker workflow tweaks (#9792)
* fix: docker workflow tweaks

* fix: run workflow on push to master branch
3 years ago
Renovate Bot ee02771959 chore(deps): update docker/build-push-action action to v2.7.0 3 years ago
Julian Lam 66f70b2aa0 Revert "Revert "Use Github Action as a release pipeline to Docker (#9720)" (#9738)"
This reverts commit d2bc1fa565.
3 years ago
Barış Soner Uşaklı d2bc1fa565
Revert "Use Github Action as a release pipeline to Docker (#9720)" (#9738)
This reverts commit 1a72d3b4f8.
3 years ago
Steve Fan 1a72d3b4f8
Use Github Action as a release pipeline to Docker (#9720)
* Create main.yml

* Update and rename main.yml to docker.yml
3 years ago