@backstage/plugin-scaffolder-backend-module-rails 0.5.0-next.1 → 0.5.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +6 -31
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend-module-rails
|
|
2
2
|
|
|
3
|
+
## 0.5.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5d1670f: Update README installation instructions
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-common@0.25.0-next.2
|
|
10
|
+
- @backstage/backend-plugin-api@1.0.0-next.2
|
|
11
|
+
- @backstage/integration@1.15.0-next.0
|
|
12
|
+
- @backstage/config@1.2.0
|
|
13
|
+
- @backstage/errors@1.2.4
|
|
14
|
+
- @backstage/types@1.1.1
|
|
15
|
+
- @backstage/plugin-scaffolder-node@0.4.11-next.2
|
|
16
|
+
|
|
3
17
|
## 0.5.0-next.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -18,26 +18,14 @@ You need to configure the action in your backend:
|
|
|
18
18
|
yarn --cwd packages/backend add @backstage/plugin-scaffolder-backend-module-rails
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
the [docs](https://backstage.io/docs/features/software-templates/writing-custom-actions#registering-custom-actions) to
|
|
23
|
-
see all options):
|
|
21
|
+
Then ensure that both the scaffolder and this module are added to your backend:
|
|
24
22
|
|
|
25
23
|
```typescript
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
return await createRouter({
|
|
34
|
-
catalogClient,
|
|
35
|
-
actions,
|
|
36
|
-
logger: env.logger,
|
|
37
|
-
config: env.config,
|
|
38
|
-
database: env.database,
|
|
39
|
-
reader: env.reader,
|
|
40
|
-
});
|
|
24
|
+
// In packages/backend/src/index.ts
|
|
25
|
+
const backend = createBackend();
|
|
26
|
+
// ...
|
|
27
|
+
backend.add(import('@backstage/plugin-scaffolder-backend/alpha'));
|
|
28
|
+
backend.add(import('@backstage/plugin-scaffolder-backend-module-rails'));
|
|
41
29
|
```
|
|
42
30
|
|
|
43
31
|
After that you can use the action in your template:
|
|
@@ -244,16 +232,3 @@ steps:
|
|
|
244
232
|
system: ${{ parameters.system }}
|
|
245
233
|
railsArguments: ${{ parameters.railsArguments }}
|
|
246
234
|
```
|
|
247
|
-
|
|
248
|
-
You also need to configure the list of allowed images as part of the creating the action for the scaffolder backend:
|
|
249
|
-
|
|
250
|
-
```typescript
|
|
251
|
-
const actions = [
|
|
252
|
-
createFetchRailsAction({
|
|
253
|
-
integrations,
|
|
254
|
-
reader: env.reader,
|
|
255
|
-
containerRunner,
|
|
256
|
-
allowedImageNames: ['repository/rails:tag'],
|
|
257
|
-
}),
|
|
258
|
-
];
|
|
259
|
-
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-backend-module-rails",
|
|
3
|
-
"version": "0.5.0-next.
|
|
3
|
+
"version": "0.5.0-next.2",
|
|
4
4
|
"description": "A module for the scaffolder backend that lets you template projects using Rails",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"test": "backstage-cli package test"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@backstage/backend-common": "^0.25.0-next.
|
|
44
|
-
"@backstage/backend-plugin-api": "^0.
|
|
43
|
+
"@backstage/backend-common": "^0.25.0-next.2",
|
|
44
|
+
"@backstage/backend-plugin-api": "^1.0.0-next.2",
|
|
45
45
|
"@backstage/config": "^1.2.0",
|
|
46
46
|
"@backstage/errors": "^1.2.4",
|
|
47
|
-
"@backstage/integration": "^1.
|
|
48
|
-
"@backstage/plugin-scaffolder-node": "^0.4.11-next.
|
|
47
|
+
"@backstage/integration": "^1.15.0-next.0",
|
|
48
|
+
"@backstage/plugin-scaffolder-node": "^0.4.11-next.2",
|
|
49
49
|
"@backstage/types": "^1.1.1",
|
|
50
50
|
"command-exists": "^1.2.9",
|
|
51
51
|
"fs-extra": "^11.0.0",
|
|
52
52
|
"yaml": "^2.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@backstage/backend-test-utils": "^0.
|
|
56
|
-
"@backstage/cli": "^0.27.1-next.
|
|
57
|
-
"@backstage/plugin-scaffolder-node-test-utils": "^0.1.12-next.
|
|
55
|
+
"@backstage/backend-test-utils": "^1.0.0-next.2",
|
|
56
|
+
"@backstage/cli": "^0.27.1-next.2",
|
|
57
|
+
"@backstage/plugin-scaffolder-node-test-utils": "^0.1.12-next.2",
|
|
58
58
|
"@types/command-exists": "^1.2.0",
|
|
59
59
|
"@types/fs-extra": "^11.0.0",
|
|
60
60
|
"@types/node": "^18.17.8",
|