Skip to content

Commit 53f4af0

Browse files
committed
Upgrade all npm packages and bump to node 22
1 parent 595c924 commit 53f4af0

12 files changed

Lines changed: 467 additions & 248 deletions

File tree

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version: 22
1919
cache: 'npm'
2020
- run: npm install --no-audit --no-fund --cache .npm
2121
- run: npx tsc
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- uses: actions/setup-node@v4
2929
with:
30-
node-version: 18
30+
node-version: 22
3131
cache: 'npm'
3232
- run: npm install --no-audit --no-fund --cache .npm
3333
- run: npx eslint .
@@ -38,8 +38,22 @@ jobs:
3838
- uses: actions/checkout@v4
3939
- uses: actions/setup-node@v4
4040
with:
41-
node-version: 18
41+
node-version: 22
4242
cache: 'npm'
4343
- run: npm ci --no-audit --no-fund
4444
- run: npx tsc
4545
- run: npm test
46+
47+
generate-schema-has-changes:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version: 22
54+
cache: 'npm'
55+
- run: npx tsc
56+
- run: node src/index.js generate-schema > schema.json
57+
- run: |
58+
git diff --exit-code -- schema.json || (>&2 echo "schema.json is not up to date. Please run node src/index.js generate-schema > schema.json"; exit 1)
59+

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
# What?
2-
Deploy application stacks to docker swarm in a controlled manner.
2+
Deploy application to docker swarm in a controlled manner.
33

44
# Why?
55

66
- Updating swarm config's used to be a pain, but not anymore.
77
- docker-compose.yml wasn't designed for docker swarm, swarm-app.yml is.
88
- `swarm-app.yml` is very explicit, no more optionals, no more short syntax.
9-
- Going from `replicated` to `global` mode is possible without manually removing services.
109

1110
## CLI improvements
1211
- `swarm-app validate` will exit on basic configuration file mistakes.
13-
- `swarm-app diff` gives a proper diff like overview of what you are about to deploy.
12+
- `swarm-app diff` gives a proper diff overview of what you are about to deploy.
13+
- `swarm-app deploy` deploys the application.
1414
- `swarm-app wait` waits for deployment to reconcile, and outputs status.
1515

16-
## Syntax Improvements
17-
### Extends from external sources.
18-
```yml
19-
services:
20-
mywebserver:
21-
extends:
22-
- { file: https://swarm-app.firecow.dk/1.0.0/general.yml, service: nginx }
23-
```
24-
2516
### Inline swarm configs with envsubst
2617
```sh
2718
export NGINX_FOLDER=html

examples/swarm-app.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ services:
3636
- default
3737
- shared
3838
replicas: 2
39-
# TODO: Implement replicated and global, support changing between em.
4039
stop_signal: SIGQUIT
4140
stop_grace_period: 10
4241
placement:

0 commit comments

Comments
 (0)