From ee1fb88cbbfa7dd5086d779ed673f43783a5d361 Mon Sep 17 00:00:00 2001 From: Mirko Brombin Date: Sat, 23 Mar 2024 16:12:00 +0100 Subject: [PATCH] docs: update examples --- docs/examples.html | 97 ++++++++++++++++++++++++---------------------- 1 file changed, 51 insertions(+), 46 deletions(-) diff --git a/docs/examples.html b/docs/examples.html index 3d82ead..3c7c6b6 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -78,28 +78,31 @@

Node.js App


-base: node:current-slim
-labels:
-  maintainer: My Awesome Team
-args:
-  DEBIAN_FRONTEND: noninteractive
-expose: 3000
-entrypoint: ["node", "/app/app.js"]
-runs:
-  - echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
-modules:
-  - name: build-app
-    type: shell
-    source:
-      type: git
-      url: https://github.com/mirkobrombin/node-sample
-      branch: main
-      commit: latest
-    commands:
-      - mv /sources/build-app /app
-      - cd /app
-      - npm i
-      - npm run build
+name: my-image
+stages:
+  - id: build
+    base: node:current-slim
+    labels:
+      maintainer: My Awesome Team
+    args:
+      DEBIAN_FRONTEND: noninteractive
+    expose: 3000
+    entrypoint: ["node", "/app/app.js"]
+    runs:
+      - echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
+    modules:
+    - name: build-app
+      type: shell
+      source:
+        type: git
+        url: https://github.com/mirkobrombin/node-sample
+        branch: main
+        commit: latest
+      commands:
+        - mv /sources/build-app /app
+        - cd /app
+        - npm i
+        - npm run build
                 

@@ -119,31 +122,33 @@

Compile Vib from Source


 base: debian:sid-slim
-labels:
-  maintainer: My Awesome Team
-args:
-  DEBIAN_FRONTEND: noninteractive
-runs:
-  - echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
-modules:
-  - name: update
-    type: shell
-    commands:
-      - apt update
-        
-  - name: vib
-    type: go
-    source:
-      type: git
-      url: https://github.com/vanilla-os/vib
-      branch: main
-      commit: latest
-    buildVars:
-      GO_OUTPUT_BIN: /usr/bin/vib
+stages:
+  - id: build
+    labels:
+    maintainer: My Awesome Team
+    args:
+      DEBIAN_FRONTEND: noninteractive
+    runs:
+      - echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
     modules:
-      - name: golang
-        type: apt
-        source:
+    - name: update
+        type: shell
+        commands:
+        - apt update
+            
+    - name: vib
+      type: go
+      source:
+        type: git
+        url: https://github.com/vanilla-os/vib
+        branch: main
+        commit: latest
+      buildVars:
+        GO_OUTPUT_BIN: /usr/bin/vib
+      modules:
+        - name: golang
+          type: apt
+          source:
           packages:
             - golang
             - ca-certificates