Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to latest release #1451

Open
wants to merge 10,000 commits into
base: workers
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
e5f6442
bumping @akala/config
Feb 10, 2025
f7ce25b
bumping @akala/gateway
Feb 10, 2025
4f7f22e
bumping @akala/pm
Feb 10, 2025
ea68685
bumping @akala/pubsub
Feb 10, 2025
af49d91
bumping @akala/semantic-release
Feb 10, 2025
ceb3064
bumping @akala/server
Feb 10, 2025
095db06
bumping @akala/sidecar
Feb 10, 2025
8bc2337
bumping @akala/ui-shell
Feb 10, 2025
b0689c1
bumping @akala/webdav
Feb 10, 2025
5802a1a
bumping @akala/authentication
Feb 10, 2025
d0a7cea
bumping @akala/aws-lambda
Feb 10, 2025
1adb743
bumping @akala/aws-sdk
Feb 10, 2025
68aaad5
bumping @akala/client
Feb 10, 2025
aa4271f
bumping @akala/client-compiler
Feb 10, 2025
686c9ce
bumping @akala/cron
Feb 10, 2025
0c5ec79
bumping @akala/crud
Feb 10, 2025
5d59bd0
bumping @akala/dashboard
Feb 10, 2025
34120e0
bumping @akala/nocode
Feb 10, 2025
115e3f4
bumping @akala/web-ui
Feb 10, 2025
9096e72
bumping @akala/automate
Feb 10, 2025
ea656fe
bumping @akala/automate-yamlloader
Feb 10, 2025
8aa7124
bumping @akala/vite
Feb 10, 2025
9f6c1c5
bumping @akala/vite-test
Feb 10, 2025
1a7f4f7
fix: add reference
npenin Feb 10, 2025
9368102
feat: add toast, tree, nav, semantic-colors, badges
npenin Feb 12, 2025
5bfad99
fix: remove broken grid color
npenin Feb 13, 2025
e4a2f1f
feat: allow to specify element watching for key bindings
npenin Feb 13, 2025
4a948c7
feat: expose HtmlControlElement
npenin Feb 13, 2025
fda9c8b
feat: introduce local-gutter-? to allow override the gutter locally
npenin Feb 13, 2025
33b41ee
feat: introduce typeahead (not complete)
npenin Feb 13, 2025
a359f32
fix: make use of new web-ui features
npenin Feb 13, 2025
fbc2123
fix: move controls to a dedicated folder
npenin Feb 13, 2025
5d808c4
feat: add split buttons
npenin Feb 13, 2025
8539628
fix: add more examples
npenin Feb 13, 2025
991139a
chore: update to yarn 4.6
npenin Feb 19, 2025
236c217
fix: add default format if no format is provided
npenin Feb 19, 2025
006290f
feat: add new methods on ObservableArray
npenin Feb 19, 2025
2cf0675
fix: parser and evaluator
npenin Feb 19, 2025
bed5fa6
feat: add BindingFormatter
npenin Feb 19, 2025
f9e8558
feat: add debounce formatter
npenin Feb 19, 2025
8914657
fix: DebounceEvent not debouncing
npenin Feb 19, 2025
290dae2
feat: infer Error message from HttpStatusCode
npenin Feb 19, 2025
ab3ad1f
fix: enforce resultType
npenin Feb 19, 2025
10b000f
feat: add DataBind plugins
npenin Feb 19, 2025
f1e88f3
feat: add dom helper (single letters)
npenin Feb 19, 2025
90fe287
feat: add client bindings helper
npenin Feb 19, 2025
69ef957
feat: add InputValue databind plugin
npenin Feb 19, 2025
99218ca
fix: specify trigger on pipe
npenin Feb 19, 2025
7a89fae
feat: add subscribe helper
npenin Feb 19, 2025
ee63b89
feat: template is less limiting on accepted elements
npenin Feb 19, 2025
166952b
feat: allow using Each without a specifc control
npenin Feb 19, 2025
250a4fc
fix: button alignment
npenin Feb 19, 2025
eeba898
feat: expose menu compositable as class
npenin Feb 19, 2025
3e794aa
fix: mark default style
npenin Feb 19, 2025
acc73e5
feat: add support for node_modules resolution
npenin Feb 19, 2025
f95e865
feat: add arrow on popovers
npenin Feb 19, 2025
da3779a
feat: add arrow styling and tooltip styling
npenin Feb 19, 2025
2f6786b
feat: add multiple and renderToText features
npenin Feb 19, 2025
5d71652
feat: add dropdown control
npenin Feb 19, 2025
3b23afa
feat: add new control showcase
npenin Feb 19, 2025
df45959
build: remove unused import
npenin Feb 19, 2025
e8b6800
fix: tooltip needs visible overflow to show the arrow
npenin Feb 19, 2025
af8a7da
bumping @akala/core
Feb 19, 2025
dd014b5
bumping @akala/json-rpc-ws
Feb 19, 2025
6ca15e8
bumping @akala/jwt
Feb 19, 2025
6bff479
bumping @akala/storage
Feb 19, 2025
3df8dbc
bumping @akala/storage-mongodb
Feb 19, 2025
5987e3b
bumping @akala/cli
Feb 19, 2025
ea7769a
bumping @akala/commands
Feb 19, 2025
5da25ca
bumping @akala/config
Feb 19, 2025
cbcf21b
bumping @akala/gateway
Feb 19, 2025
3a782ee
bumping @akala/pm
Feb 19, 2025
325e217
bumping @akala/pubsub
Feb 19, 2025
84c1895
bumping @akala/semantic-release
Feb 19, 2025
9e09355
bumping @akala/server
Feb 19, 2025
02ae56c
bumping @akala/sidecar
Feb 19, 2025
daba5a4
bumping @akala/ui-shell
Feb 19, 2025
c80a252
bumping @akala/webdav
Feb 19, 2025
aa08d38
bumping @akala/authentication
Feb 19, 2025
87e570a
bumping @akala/aws-lambda
Feb 19, 2025
c5adbb1
bumping @akala/aws-sdk
Feb 19, 2025
a437c80
bumping @akala/client
Feb 19, 2025
0be2f86
bumping @akala/client-compiler
Feb 19, 2025
31b5ae4
bumping @akala/cron
Feb 19, 2025
fa45407
bumping @akala/crud
Feb 19, 2025
36a8870
bumping @akala/dashboard
Feb 19, 2025
c7699b7
bumping @akala/nocode
Feb 19, 2025
705fa6e
bumping @akala/web-ui
Feb 19, 2025
04812c5
bumping @akala/automate
Feb 19, 2025
592a259
bumping @akala/automate-yamlloader
Feb 19, 2025
0873118
bumping @akala/vite
Feb 19, 2025
ebdd7f0
bumping @akala/vite-test
Feb 19, 2025
777f1bf
feat: add support for hosted tables
npenin Feb 19, 2025
ce77a80
refactor: reorder formatters registration
npenin Feb 19, 2025
991418e
feat: add Watch formatter
npenin Feb 19, 2025
d119f9b
fix: add missing type
npenin Feb 19, 2025
f18fd8a
feat: add bind helper
npenin Feb 19, 2025
e9da6f3
feat: make attributecomposer more permissive
npenin Feb 19, 2025
c328c85
fix: template provided by functions don't need to be cloned
npenin Feb 19, 2025
c0d239a
feat: give controls the posibility to inherit page stylesheet
npenin Feb 19, 2025
518225a
feat: add set function in dom helpers
npenin Feb 19, 2025
d1cd4bb
fix: remove extra logging
npenin Feb 19, 2025
417dbde
fix: table inherits styles
npenin Feb 19, 2025
bffff43
chore: add more example to showcase
npenin Feb 19, 2025
b4d1b52
bumping @akala/core
Feb 19, 2025
4155bdd
bumping @akala/json-rpc-ws
Feb 19, 2025
af43dec
bumping @akala/jwt
Feb 19, 2025
6202e34
bumping @akala/storage
Feb 19, 2025
a1924fd
bumping @akala/storage-mongodb
Feb 19, 2025
91dfd2e
bumping @akala/cli
Feb 19, 2025
f1502ff
bumping @akala/commands
Feb 19, 2025
cc3ff34
bumping @akala/config
Feb 19, 2025
2fcec84
bumping @akala/gateway
Feb 19, 2025
e438282
bumping @akala/pm
Feb 19, 2025
1de4912
bumping @akala/pubsub
Feb 19, 2025
088d00e
bumping @akala/semantic-release
Feb 19, 2025
1e2670d
bumping @akala/server
Feb 19, 2025
ccc1657
bumping @akala/sidecar
Feb 19, 2025
ab1b3a8
bumping @akala/ui-shell
Feb 19, 2025
bdce67e
bumping @akala/webdav
Feb 19, 2025
54765db
bumping @akala/authentication
Feb 19, 2025
af6a157
bumping @akala/aws-lambda
Feb 19, 2025
af10859
bumping @akala/aws-sdk
Feb 19, 2025
a650abb
bumping @akala/client
Feb 19, 2025
47a9068
bumping @akala/client-compiler
Feb 19, 2025
29c8f7f
bumping @akala/cron
Feb 19, 2025
cf97950
bumping @akala/crud
Feb 19, 2025
adf1444
bumping @akala/dashboard
Feb 19, 2025
2cfd3a6
bumping @akala/nocode
Feb 19, 2025
acaeac5
bumping @akala/web-ui
Feb 19, 2025
d51d0ff
bumping @akala/automate
Feb 19, 2025
aa639ce
bumping @akala/automate-yamlloader
Feb 19, 2025
67b0a6c
bumping @akala/vite
Feb 19, 2025
986208e
bumping @akala/vite-test
Feb 19, 2025
ceb628e
fix: postcss composer
npenin Feb 20, 2025
bc80268
feat: make ObservableArray as [watcher] too
npenin Feb 21, 2025
1a97991
fix: update after Binding and Observable breaking change in core
npenin Feb 21, 2025
0e5565e
refactor: leverage subscribe
npenin Feb 21, 2025
c2bc4af
feat: add class dom helper
npenin Feb 21, 2025
ea62c94
fix: teardown accepts undefined or null without crashing
npenin Feb 21, 2025
f7cc51b
feat: add non-interactive to still be able to levrage variables
npenin Feb 21, 2025
6147f7c
fix: card are non-interactive unless "actionable"
npenin Feb 21, 2025
06083a6
fix: postcss composer stops crashing if file does not exist
npenin Feb 21, 2025
e5331a5
fix: control tint is now 25% alpha instead of 15%
npenin Feb 21, 2025
836f7da
feat: add table sorting
npenin Feb 21, 2025
18080b8
refactor: update design kit to showcase table sorting
npenin Feb 21, 2025
e7a5512
fix: prevent memory leak in controls when using bind
npenin Feb 21, 2025
7104de6
refactor: move teardown manager to core
npenin Feb 21, 2025
8b23a14
refactor: move subscription to teardown manager
npenin Feb 21, 2025
73cc369
refactor: move subscription to teardown manager
npenin Feb 21, 2025
aeb7d22
feat: add sort on observable arrays
npenin Feb 21, 2025
ce3b538
refactor: move pipe and reply events to event-emitter
npenin Feb 21, 2025
86374cf
refactor: move teardown manager to core
npenin Feb 21, 2025
71cd61f
feat: add local paging support
npenin Feb 21, 2025
a072567
chore: update design kit to showcase local paging
npenin Feb 21, 2025
c2286ac
fix: bug when each container contains other entries
npenin Feb 22, 2025
372bbe4
feat: add possibility to find ancerstor control (like the closest fea…
npenin Feb 22, 2025
b9cc087
feat: add async array formatter
npenin Feb 22, 2025
f92e976
refactor: move watcher and Watcher to shared
npenin Feb 22, 2025
ea670af
fix: visitFormat provides updated settings value
npenin Feb 22, 2025
b6e1989
fix: improve support for formatexpression
npenin Feb 22, 2025
0769f69
feat: export formatters
npenin Feb 22, 2025
b50cf6b
fix: button needs cursor
npenin Feb 22, 2025
2fdb215
fix: table to use text color (for sort arrow highlight)
npenin Feb 22, 2025
a6c1ba4
fix: ensure popover needs htmlelement
npenin Feb 22, 2025
4b5d6c8
feat: add TablePager
npenin Feb 22, 2025
29e10ff
fix: add table pager showcasing
npenin Feb 22, 2025
1d90e64
fix: add log for troubleshooting
npenin Feb 22, 2025
b527869
fix: add log for troubleshooting
npenin Feb 22, 2025
c00db2c
feat: add number indexes on observable arrays
npenin Feb 22, 2025
84d01d2
chore: remove extra logging
npenin Feb 22, 2025
7c5b9ff
feat: add more proxy function to make observablearray look like an array
npenin Feb 22, 2025
a673f05
chore: code formatting
npenin Feb 22, 2025
9661fe9
chore: remove useless await
npenin Feb 22, 2025
40918c2
feat: add more proxy function to make observablearray look like an array
npenin Feb 22, 2025
63bdd7f
fix: remove logging
npenin Feb 22, 2025
275e4ec
fix: getValue detects ObservableArray
npenin Feb 22, 2025
55e4d00
bumping @akala/core
Feb 22, 2025
bde10f4
bumping @akala/json-rpc-ws
Feb 22, 2025
c8d18fc
bumping @akala/jwt
Feb 22, 2025
06bb4a9
bumping @akala/storage
Feb 22, 2025
8d81d6f
bumping @akala/storage-mongodb
Feb 22, 2025
f01b3fb
bumping @akala/cli
Feb 22, 2025
4687a8b
bumping @akala/commands
Feb 22, 2025
324b0b1
bumping @akala/config
Feb 22, 2025
e5c34ee
bumping @akala/gateway
Feb 22, 2025
3d66c4a
bumping @akala/pm
Feb 22, 2025
fcce3a2
bumping @akala/pubsub
Feb 22, 2025
7058018
bumping @akala/semantic-release
Feb 22, 2025
7105208
bumping @akala/server
Feb 22, 2025
b1d0481
bumping @akala/sidecar
Feb 22, 2025
1b55827
bumping @akala/ui-shell
Feb 22, 2025
ea96a1e
bumping @akala/webdav
Feb 22, 2025
9c9d276
bumping @akala/authentication
Feb 22, 2025
c7f143a
bumping @akala/aws-lambda
Feb 22, 2025
fa9f531
bumping @akala/aws-sdk
Feb 22, 2025
6ec694a
bumping @akala/client
Feb 22, 2025
3801df8
bumping @akala/client-compiler
Feb 22, 2025
edf3100
bumping @akala/cron
Feb 22, 2025
4d3f3ec
bumping @akala/crud
Feb 22, 2025
e7f745a
bumping @akala/dashboard
Feb 22, 2025
f1fd140
bumping @akala/nocode
Feb 22, 2025
54a95e2
bumping @akala/web-ui
Feb 22, 2025
76fa8f8
bumping @akala/automate
Feb 22, 2025
496d6a2
bumping @akala/automate-yamlloader
Feb 22, 2025
621c01e
bumping @akala/vite
Feb 22, 2025
bb3538d
bumping @akala/vite-test
Feb 22, 2025
d3884d0
feat: improve translator interface
npenin Feb 23, 2025
6dd0a83
fix: i18n uses the core Translator interface
npenin Feb 23, 2025
a6500a1
fix: update after core Translator interface upgrade
npenin Feb 23, 2025
dd2ae8f
feat: add bootstrap functions which registers all web-ui control with…
npenin Feb 23, 2025
2915c28
refactor: leverage new web-ui bootstrap function
npenin Feb 23, 2025
c00dee5
doc: add doc datacontext and databind
npenin Feb 23, 2025
211cc6b
fix: config as akala plugin
npenin Feb 25, 2025
d23234f
feat: add cli npm and yarn helpers from pm
npenin Feb 25, 2025
74292f2
fix: use helpers from @akala/cli
npenin Feb 25, 2025
409539e
feat: first version
npenin Feb 25, 2025
2c2e894
fix: stop re-exporting spawnAsync from cli
npenin Feb 25, 2025
a024fed
feat: add doc from gh-pages branch
npenin Feb 25, 2025
fff5646
fix: rename root project to prevent conflicts with new akala project
npenin Feb 25, 2025
84f1def
feat: add xpm (but not leverage it yet)
npenin Feb 25, 2025
ce23f8e
feat: export cli-helper, yarn-helper and npm-helper
npenin Feb 25, 2025
8409f73
ci: add gh-pages script. Not final yet
npenin Feb 25, 2025
ab359d1
feat: add case converters + tests
npenin Feb 25, 2025
63bcf6b
fix: leverage core case converters
npenin Feb 25, 2025
2ae6f22
fix: cleanup script
npenin Feb 25, 2025
29d5996
feat: remove legacy global injector functions
npenin Feb 25, 2025
6ea3ca9
fix: update after core breaking change
npenin Feb 25, 2025
db6fd88
feat: add close on FileGenerator
npenin Feb 25, 2025
8729d30
doc: add more doc
npenin Feb 25, 2025
ef39d5c
feat: add akala plugin as referenced in doc
npenin Feb 25, 2025
37efb17
chore: cleanup dependencies
npenin Feb 25, 2025
1635a88
chore: add new client plugin
npenin Feb 25, 2025
bd430af
fix: xpm issues
npenin Feb 25, 2025
b23f5de
fix: cleanup imports
npenin Feb 25, 2025
234a6f5
fix: #S6661
npenin Feb 25, 2025
58ae535
Create jekyll-gh-pages.yml
npenin Feb 25, 2025
d18e36d
Delete .github/workflows/gh-pages.yml
npenin Feb 25, 2025
bcf7ca8
doc: specify theme
npenin Feb 25, 2025
3f58be7
doc: switch to auto skin
npenin Feb 25, 2025
424fd69
Merge pull request #1544 from npenin/dev
npenin Feb 25, 2025
b7cd5e2
fix: revert to cayman
npenin Feb 25, 2025
80f4597
doc: fix theme
npenin Feb 25, 2025
c056e7c
doc: add readthedocs config file
npenin Feb 25, 2025
098f7a1
fix: typo in filename
npenin Feb 25, 2025
3cff041
doc: testing doc from read the docs
npenin Feb 25, 2025
005f1c2
doc: switch to mkdoc
npenin Feb 25, 2025
6859db8
doc: fix requirements path
npenin Feb 25, 2025
238c07e
doc: fix requirements path
npenin Feb 25, 2025
e5d8f0a
doc: remove readthedocs
npenin Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 50 additions & 0 deletions .akala.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"plugins": [
"@akala/config/akala",
"@akala/commands/akala",
"@akala/server/akala",
"@akala/pm/akala"
],
"pm": {
"containers": {
"pm": {
"commandable": true,
"stateless": false,
"path": "./packages/pm/commands.json"
},
"server": {
"path": "./packages/server/commands.json",
"commandable": true,
"stateless": false
}
},
"mapping": {
"pm": {
"cwd": "/home/nicolas/dev/akala",
"container": "pm",
"connect": {
"jsonrpc+unix:///home/nicolas/dev/akala/pm.sock": {},
"jsonrpc+tcp:///0.0.0.0:31416": {}
}
}
},
"plugins": []
},
"commands": {
"sdk": "packages/commands/commands.json",
"sdk aws": "packages/aws-sdk/commands.json",
"client": "packages/client-compiler/commands.json"
},
"compiler": {
"loaders": {
"protocol": [
"file:///home/neonp/akala/packages/client-compiler/dist/esm/loaders/protocol/multi-protocol.js",
"file:///home/neonp/akala/packages/client-compiler/dist/esm/loaders/protocol/https.js"
],
"format": [
"file:///home/neonp/akala/packages/client-compiler/dist/esm/loaders/format/html-loader.js",
"file:///home/neonp/akala/packages/client-compiler/dist/esm/loaders/format/ts-loader.js"
]
}
}
}
2 changes: 2 additions & 0 deletions .akala/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Empty file modified .dockerignore
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
ignorePatterns: [
"packages/webdav/**/*.ts",
"packages/crud/**/*.ts",
"packages/authentication/**/*.ts",
],
rules: {
"@typescript-eslint/no-inferrable-types": "off",
"no-var": "off",
},
extends: [
'eslint:recommended',
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
settings: {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {}
}
},
};
27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

Empty file modified .github/FUNDING.yml
100755 → 100644
Empty file.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2

updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10

13 changes: 13 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: auto-merge

on:
pull_request:

jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: build

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install yarn
run: |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn
- name: Install Packages
run: yarn install
- name: Compile ESM
run: yarn tsc -b packages/tsconfig.esm.json
- name: Compile CJS
run: yarn tsc -b packages/tsconfig.cjs.json
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
85 changes: 85 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# ref: https://github.com/crazy-max/diun/blob/master/.github/workflows/build.yml

name: Docker
on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Prepare
id: prepare
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
elif [[ $GITHUB_REF == refs/heads/main ]]; then
echo ::set-output name=version::latest
elif [[ $GITHUB_REF == refs/heads/* ]]; then
echo ::set-output name=version::${GITHUB_REF#refs/heads/}
else
echo ::set-output name=version::snapshot
fi

echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
# echo ::set-output name=docker_platforms::linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
echo ::set-output name=docker_platforms::linux/amd64,linux/arm64/v8
echo ::set-output name=docker_image::${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3.7.1

- name: Environment
run: |
echo home=$HOME
echo git_ref=$GITHUB_REF
echo git_sha=$GITHUB_SHA
echo version=${{ steps.prepare.outputs.version }}
echo date=${{ steps.prepare.outputs.build_date }}
echo image=${{ steps.prepare.outputs.docker_image }}
echo platforms=${{ steps.prepare.outputs.docker_platforms }}
echo avail_platforms=${{ steps.buildx.outputs.platforms }}

# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Docker Buildx (no push)
run: |
docker buildx build \
--platform ${{ steps.prepare.outputs.docker_platforms }} \
--output "type=image,push=false" \
--build-arg "VERSION=${{ steps.prepare.outputs.version }}" \
--build-arg "BUILD_DATE=${{ steps.prepare.outputs.build_date }}" \
--build-arg "VCS_REF=${GITHUB_SHA::8}" \
--tag "${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}" \
--file docker/Dockerfile docker

- name: Docker Login
if: success()
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin

- name: Docker Buildx (push)
if: success()
run: |
docker buildx build \
--platform ${{ steps.prepare.outputs.docker_platforms }} \
--output "type=image,push=true" \
--build-arg "VERSION=${{ steps.prepare.outputs.version }}" \
--build-arg "BUILD_DATE=${{ steps.prepare.outputs.build_date }}" \
--build-arg "VCS_REF=${GITHUB_SHA::8}" \
--tag "${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}" \
--file docker/Dockerfile docker

- name: Clear
if: always()
run: |
rm -f ${HOME}/.docker/config.json
75 changes: 0 additions & 75 deletions .github/workflows/npm-publish.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/ossar-analysis.yml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name: OSSAR

on:
push:
branches:
- master
pull_request:

jobs:
Expand All @@ -16,7 +18,7 @@ jobs:
steps:
# Checkout your code repository to scan
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down Expand Up @@ -44,6 +46,6 @@ jobs:

# Upload results to the Security tab
- name: Upload OSSAR results
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
Loading