Nightly build fix
APT packaging fixes - Adopt nightly versioning to be parsed - Fix binary source path for release builds Improve unstable build versioning Use timestamp as bugfix version, as we would have the same version number in all builds until the version tag gets updated
This commit is contained in:
parent
acae4a235a
commit
79d6388681
4 changed files with 9 additions and 7 deletions
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
|
|
@ -97,7 +97,7 @@ jobs:
|
|||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: release -f .goreleaser-nightly.yml --rm-dist
|
||||
args: --snapshot -f .goreleaser-nightly.yml --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ jobs:
|
|||
env:
|
||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||
run: |
|
||||
for filename in dist/*.deb; do
|
||||
for filename in release/*.deb; do
|
||||
echo "Pushing $filename to 'unstable'"
|
||||
cloudsmith push deb evcc/unstable/any-distro/any-version $filename
|
||||
done
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -98,7 +98,7 @@ jobs:
|
|||
env:
|
||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||
run: |
|
||||
for filename in dist/*.deb; do
|
||||
for filename in release/*.deb; do
|
||||
echo "Pushing $filename to 'stable'"
|
||||
cloudsmith push deb evcc/stable/any-distro/any-version $filename
|
||||
done
|
||||
|
|
@ -7,7 +7,7 @@ builds:
|
|||
flags:
|
||||
- -tags=release
|
||||
ldflags:
|
||||
- -X github.com/evcc-io/evcc/server.Version={{.Version}}.0-nightly.{{.Date}} -X github.com/evcc-io/evcc/server.Commit={{.ShortCommit}} -s -w
|
||||
- -X github.com/evcc-io/evcc/server.Version={{.Version}}.{{.Timestamp}} -X github.com/evcc-io/evcc/server.Commit={{.ShortCommit}} -s -w
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
|
|
@ -31,15 +31,15 @@ archives:
|
|||
format: zip
|
||||
files:
|
||||
- evcc.dist.yaml
|
||||
name_template: "{{.ProjectName}}_{{ .Version }}.0-nightly.{{.Date}}_{{.Os}}-{{.Arch}}"
|
||||
name_template: "{{.ProjectName}}_{{ .Version }}.{{.Timestamp}}_{{.Os}}-{{.Arch}}"
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
name_template: "nightly"
|
||||
name_template: "{{ .Version }}.{{.Timestamp}}"
|
||||
nfpms:
|
||||
- id: default
|
||||
package_name: evcc
|
||||
file_name_template: "{{.ProjectName}}_{{ .Version }}.0-nightly.{{.Date}}_{{.Os}}-{{.Arch}}"
|
||||
file_name_template: "{{.ProjectName}}_{{ .Version }}.{{.Timestamp}}_{{.Os}}-{{.Arch}}"
|
||||
|
||||
homepage: https://evcc.io
|
||||
description: EV Charge Controller
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon
|
|||
systemctl --system daemon-reload >/dev/null || true
|
||||
if [ -n "$2" ]; then
|
||||
deb-systemd-invoke try-restart evcc.service >/dev/null || true
|
||||
else
|
||||
deb-systemd-invoke start evcc.service >/dev/null || true
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue