Restored goreleaser packages for now, as I just want to release. Still want them separate later.

This commit is contained in:
jamesread 2021-11-17 00:38:52 +00:00
parent c7bc22ac7e
commit 7ee404f44c
3 changed files with 76 additions and 2 deletions

View File

@ -28,7 +28,7 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: dist name: dist
path: dist/OliveTin-** path: dist/OliveTin*.*
- name: Archive integration tests - name: Archive integration tests
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2

View File

@ -66,3 +66,78 @@ archives:
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
dockers:
- image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-amd64"
dockerfile: Dockerfile
goos: linux
goarch: amd64
skip_push: false
use: docker
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
extra_files:
- webui
- image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-arm64"
dockerfile: Dockerfile
goos: linux
goarch: arm64
skip_push: false
use: docker
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
extra_files:
- webui
- image_templates:
- "docker.io/jamesread/olivetin:{{ .Tag }}-armv5"
dockerfile: Dockerfile
goos: linux
goarm: 5
goarch: arm
skip_push: false
use: docker
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
extra_files:
- webui
docker_manifests:
- name_template: docker.io/jamesread/olivetin:{{ .Version }}
image_templates:
- docker.io/jamesread/olivetin:{{ .Version }}-amd64
- docker.io/jamesread/olivetin:{{ .Version }}-arm64
- docker.io/jamesread/olivetin:{{ .Version }}-armv5
nfpms:
- maintainer: James Read <contact@jread.com>
description: OliveTin is a web interface for running Linux shell commands.
homepage: https://github.com/jamesread/OliveTin
license: AGPL-3.0
formats:
- deb
- rpm
- apk
contents:
- src: OliveTin.service
dst: /etc/systemd/system/OliveTin.service
- src: webui
dst: /var/www/olivetin/
- src: config.yaml
dst: /etc/OliveTin/config.yaml
type: "config|noreplace"

View File

@ -23,7 +23,6 @@ type webUISettings struct {
func findWebuiDir() string { func findWebuiDir() string {
directoriesToSearch := []string{ directoriesToSearch := []string{
"./webui", "./webui",
"/usr/share/OliveTin/webui/",
"/var/www/olivetin/", "/var/www/olivetin/",
"/etc/OliveTin/webui/", "/etc/OliveTin/webui/",
} }