Forráskód Böngészése

Refining the docker images

jamesread 4 éve
szülő
commit
af5889a04d
1 módosított fájl, 10 hozzáadás és 3 törlés
  1. 10 3
      .goreleaser.yml

+ 10 - 3
.goreleaser.yml

@@ -1,7 +1,8 @@
 project_name: OliveTin
 project_name: OliveTin
 before:
 before:
   hooks:
   hooks:
-    - go mod tidy
+    - go mod download
+    - rm -rf webui/node_modules
 builds:
 builds:
   - env:
   - env:
       - CGO_ENABLED=0
       - CGO_ENABLED=0
@@ -16,7 +17,7 @@ builds:
       - arm
       - arm
 
 
     goarm:
     goarm:
-      - 5 # For old RPIs
+      - 7 # For old RPIs
 
 
     main: cmd/OliveTin/main.go
     main: cmd/OliveTin/main.go
 
 
@@ -105,7 +106,7 @@ dockers:
       - "docker.io/jamesread/olivetin:{{ .Tag }}-armv7"
       - "docker.io/jamesread/olivetin:{{ .Tag }}-armv7"
     dockerfile: Dockerfile
     dockerfile: Dockerfile
     goos: linux
     goos: linux
-    goarm: 5
+    goarm: 7
     goarch: arm
     goarch: arm
     skip_push: false
     skip_push: false
     use: docker
     use: docker
@@ -124,6 +125,12 @@ docker_manifests:
       - docker.io/jamesread/olivetin:{{ .Version }}-arm64
       - docker.io/jamesread/olivetin:{{ .Version }}-arm64
       - docker.io/jamesread/olivetin:{{ .Version }}-armv7
       - docker.io/jamesread/olivetin:{{ .Version }}-armv7
 
 
+  - name_template: docker.io/jamesread/olivetin:latest
+    image_templates:
+      - docker.io/jamesread/olivetin:{{ .Version }}-amd64
+      - docker.io/jamesread/olivetin:{{ .Version }}-arm64
+      - docker.io/jamesread/olivetin:{{ .Version }}-armv7
+
 nfpms:
 nfpms:
   - maintainer: James Read <contact@jread.com>
   - maintainer: James Read <contact@jread.com>
     description: OliveTin is a web interface for running Linux shell commands.
     description: OliveTin is a web interface for running Linux shell commands.