@mikarinneoracle/oci-cdk-code-only-preview 0.0.11 → 0.0.13
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/README.md +2 -2
- package/bin/deploy-code-only.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -146,9 +146,9 @@ npx ocdk destroy --code-only --auto-approve
|
|
|
146
146
|
Run from your project root (where your `func.yaml` / function code and `node_modules/@mikarinneoracle/oci-cdk-code-only-preview` live):
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
npx ocdk deploy
|
|
149
|
+
npx ocdk deploy --auto-approve --code-only
|
|
150
150
|
npx ocdk tail:execution-log
|
|
151
|
-
npx ocdk destroy
|
|
151
|
+
npx ocdk destroy --auto-approve --code-only
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
- **`npx ocdk deploy`** – Deploy the stack. Options (e.g. `--auto-approve`) are passed through.
|
package/bin/deploy-code-only.js
CHANGED
|
@@ -157,7 +157,10 @@ function main() {
|
|
|
157
157
|
];
|
|
158
158
|
if (functionId) {
|
|
159
159
|
console.log(`Updating code-only function ${metadata.functionName} in ${metadata.appName}...`);
|
|
160
|
-
|
|
160
|
+
// OCI Preview CLI may print an unsuccessful waiter notice and the entire
|
|
161
|
+
// function payload even though the archive update was accepted. Keep its
|
|
162
|
+
// output captured so the normal deploy output remains concise.
|
|
163
|
+
runOci(['fn', 'function', 'update', 'archive-function', '--function-id', functionId, '--runtime-config', 'FUNCTION_UPDATE', '--force', ...commonArgs]);
|
|
161
164
|
console.log(`Updated code-only function: ${functionId}`);
|
|
162
165
|
} else {
|
|
163
166
|
console.log(`Creating code-only function ${metadata.functionName} in ${metadata.appName}...`);
|
|
@@ -166,7 +169,7 @@ function main() {
|
|
|
166
169
|
'--application-id', applicationId,
|
|
167
170
|
'--display-name', metadata.functionName,
|
|
168
171
|
...commonArgs,
|
|
169
|
-
]
|
|
172
|
+
]);
|
|
170
173
|
console.log('Created code-only function.');
|
|
171
174
|
}
|
|
172
175
|
} finally {
|