podman 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,8 +12,20 @@ npm i podman
12
12
  ## Usage
13
13
 
14
14
  ```ts
15
- import {startMachine} from 'podman'
15
+ import {build, push, startMachine} from 'podman'
16
16
 
17
17
  await startMachine() // podman-machine-default
18
18
  await startMachine('your-machine-name')
19
+
20
+ await build({
21
+ context: '.',
22
+ file: 'Containerfile',
23
+ tag: 'example:latest',
24
+ })
25
+
26
+ await push({
27
+ image: 'example:latest',
28
+ destination: 'docker://registry.example.com/repository:tag',
29
+ creds: 'username:password',
30
+ })
19
31
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podman",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Utilities for starting a Podman machine from Bun/Node.",
5
5
  "author": "Mark Penner <npm@mpen.ca>",
6
6
  "module": "index.ts",