Added arm builds, improve database
- The program will now be cross-compiled and released for arm as well as x86 - What we previously called "cache" is not actually a cache, as it holds content that can't be always retrieved. Now we're stopping calling it a cache. - Improved history merging - Fixed the README to include the database as a volume, and to fix some errors
This commit is contained in:
parent
52ba0ea4c1
commit
7a1214d492
6 changed files with 52 additions and 34 deletions
|
@ -1,12 +1,6 @@
|
|||
pipeline:
|
||||
|
||||
build:
|
||||
image: golang
|
||||
commands:
|
||||
- go get ecodash
|
||||
- go build
|
||||
|
||||
docker-publish:
|
||||
docker:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: gitea.massivebox.net
|
||||
|
@ -16,11 +10,19 @@ pipeline:
|
|||
password:
|
||||
from_secret: auth_token
|
||||
|
||||
build:
|
||||
image: golang
|
||||
commands:
|
||||
- go get ecodash
|
||||
- go build -o ecodash-x86
|
||||
- env GOOS=linux GOARCH=arm go build -o ecodash-arm
|
||||
|
||||
prepare-gitea-release:
|
||||
image: alpine
|
||||
commands:
|
||||
- apk update; apk add zip
|
||||
- zip -r ecodash.zip templates ecodash
|
||||
- mv ecodash-x86 ecodash; zip -r ecodash-x86.zip templates ecodash
|
||||
- mv ecodash-arm ecodash; zip -r ecodash-arm.zip templates ecodash
|
||||
when:
|
||||
event: tag
|
||||
|
||||
|
@ -28,7 +30,7 @@ pipeline:
|
|||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://gitea.massivebox.net
|
||||
files: ecodash.zip
|
||||
files: ecodash-x86.zip ecodash-arm.zip
|
||||
api_key:
|
||||
from_secret: auth_token
|
||||
title: ${CI_COMMIT_TAG}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue