chore: cleanup package build
This commit is contained in:
parent
51c68bc24d
commit
468b7313d6
5 changed files with 34 additions and 29 deletions
2
.github/workflows/documentation.yml
vendored
2
.github/workflows/documentation.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Deploy to docs repo
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
personal_token: ${{ secrets.GH_REPO }}
|
||||
personal_token: ${{ secrets.GH_TOKEN }}
|
||||
publish_dir: ./templates/docs
|
||||
external_repository: evcc-io/docs
|
||||
publish_branch: main
|
||||
|
|
|
|||
22
.github/workflows/nightly.yml
vendored
22
.github/workflows/nightly.yml
vendored
|
|
@ -85,18 +85,18 @@ jobs:
|
|||
go-version: ^1.18
|
||||
id: go
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "16"
|
||||
# - name: Set up Node
|
||||
# uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: "16"
|
||||
|
||||
- name: Install Cloudsmith CLI
|
||||
run: pip install --upgrade cloudsmith-cli
|
||||
|
||||
- name: Clean git
|
||||
run: |
|
||||
git checkout go.*
|
||||
rm -rf flags buildflags
|
||||
# - name: Clean git
|
||||
# run: |
|
||||
# git checkout go.*
|
||||
# rm -rf flags buildflags
|
||||
|
||||
- name: Create nightly build
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
|
|
@ -109,8 +109,4 @@ jobs:
|
|||
- name: Publish .deb to Cloudsmith
|
||||
env:
|
||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||
run: |
|
||||
for filename in release/*.deb; do
|
||||
echo "Pushing $filename to 'unstable'"
|
||||
cloudsmith push deb evcc/unstable/any-distro/any-version $filename
|
||||
done
|
||||
run: make apt-nightly
|
||||
|
|
|
|||
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
|
|
@ -65,10 +65,10 @@ jobs:
|
|||
go-version: ^1.18
|
||||
id: go
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "16"
|
||||
# - name: Setup Node
|
||||
# uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: "16"
|
||||
|
||||
- name: Install Cloudsmith CLI
|
||||
run: pip install --upgrade cloudsmith-cli
|
||||
|
|
@ -87,10 +87,10 @@ jobs:
|
|||
# - name: Build Root Filesystem
|
||||
# run: make image-rootfs
|
||||
|
||||
- name: Clean git
|
||||
run: |
|
||||
git checkout go.*
|
||||
rm -rf flags buildflags
|
||||
# - name: Clean git
|
||||
# run: |
|
||||
# git checkout go.*
|
||||
# rm -rf flags buildflags
|
||||
|
||||
- name: Create Github Release
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
|
|
@ -98,13 +98,9 @@ jobs:
|
|||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_REPO }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Publish .deb to Cloudsmith
|
||||
env:
|
||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||
run: |
|
||||
for filename in release/*.deb; do
|
||||
echo "Pushing $filename to 'stable'"
|
||||
cloudsmith push deb evcc/stable/any-distro/any-version $filename
|
||||
done
|
||||
run: make apt-release
|
||||
|
|
|
|||
2
.github/workflows/website.yml
vendored
2
.github/workflows/website.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Deploy to evcc.io repo
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
personal_token: ${{ secrets.GH_REPO }}
|
||||
personal_token: ${{ secrets.GH_TOKEN }}
|
||||
publish_dir: ./templates/evcc.io/
|
||||
external_repository: evcc-io/evcc.io
|
||||
publish_branch: main
|
||||
|
|
|
|||
13
Makefile
13
Makefile
|
|
@ -27,6 +27,9 @@ IMAGE_FILE := evcc_$(TAG_NAME).image
|
|||
IMAGE_ROOTFS := evcc_$(TAG_NAME).rootfs
|
||||
IMAGE_OPTIONS := -hostname evcc -http_port 8080 github.com/gokrazy/serial-busybox github.com/gokrazy/breakglass github.com/evcc-io/evcc
|
||||
|
||||
# deb
|
||||
PACKAGES = ./release
|
||||
|
||||
default: build
|
||||
|
||||
all: clean install install-ui ui assets lint test-ui lint-ui test build
|
||||
|
|
@ -96,6 +99,16 @@ publish-release:
|
|||
RELEASE=1 seihon publish --dry-run=false --template docker/ci.Dockerfile --base-runtime-image alpine:$(ALPINE_VERSION) \
|
||||
--image-name $(DOCKER_IMAGE) -v "latest" -v "$(TAG_NAME)" --targets=$(TARGETS)
|
||||
|
||||
apt-nightly:
|
||||
$(foreach file, $(wildcard $(PACKAGES)/*.deb), \
|
||||
cloudsmith push deb evcc/unstable/any-distro/any-version $(file); \
|
||||
)
|
||||
|
||||
apt-release:
|
||||
$(foreach file, $(wildcard $(PACKAGES)/*.deb), \
|
||||
cloudsmith push deb evcc/stable/any-distro/any-version $(file); \
|
||||
)
|
||||
|
||||
# gokrazy image
|
||||
prepare-image:
|
||||
go install github.com/gokrazy/tools/cmd/gokr-packer@latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue