Переглянути джерело

feature: #83 - Restore Alpine packages

jamesread 3 роки тому
батько
коміт
cf582e7152
2 змінених файлів з 26 додано та 1 видалено
  1. 26 1
      .goreleaser.yml
  2. 0 0
      var/openrc/OliveTin

+ 26 - 1
.goreleaser.yml

@@ -115,7 +115,8 @@ docker_manifests:
       - docker.io/jamesread/olivetin:{{ .Version }}-arm64
 
 nfpms:
-  - maintainer: James Read <contact@jread.com>
+  - id: default
+    maintainer: James Read <contact@jread.com>
     description: OliveTin is a web interface for running Linux shell commands.
     homepage: https://github.com/OliveTin/OliveTin
     license: AGPL-3.0
@@ -138,6 +139,30 @@ nfpms:
         dst: /etc/OliveTin/config.yaml
         type: "config|noreplace"
 
+  - id: openrc
+    maintainer: James Read <contact@jread.com>
+    description: OliveTin is a web interface for running Linux shell commands.
+    homepage: https://github.com/OliveTin/OliveTin
+    license: AGPL-3.0
+    formats:
+      - apk
+
+    bindir: /usr/local/bin/
+
+    file_name_template: '{{ .PackageName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
+
+    contents:
+      - src: var/openrc/OliveTin
+        dst: /etc/init.d/
+
+      - src: webui
+        dst: /var/www/olivetin/
+
+      - src: config.yaml
+        dst: /etc/OliveTin/config.yaml
+        type: "config|noreplace"
+
+
 release:
   footer: |
     ## Container images ([on Docker Hub](https://hub.docker.com/r/jamesread/olivetin/tags?page=1&ordering=last_updated))

+ 0 - 0
openrc-OliveTin → var/openrc/OliveTin