Przeglądaj źródła

Refining the docker images

jamesread 4 lat temu
rodzic
commit
af5889a04d
1 zmienionych plików z 10 dodań i 3 usunięć
  1. 10 3
      .goreleaser.yml

+ 10 - 3
.goreleaser.yml

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