Upgrade release tools
This commit is contained in:
parent
3bb58e59e8
commit
e47bb2bf8e
7 changed files with 17 additions and 8 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
Dockerfile
|
Dockerfile
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
release
|
||||||
!entrypoint.sh
|
!entrypoint.sh
|
||||||
!evcc.dist.yaml
|
!evcc.dist.yaml
|
||||||
!package*.json
|
!package*.json
|
||||||
|
|
|
||||||
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: make install
|
run: make install
|
||||||
|
|
||||||
- name: Assets & UI
|
- name: Assets
|
||||||
run: make assets
|
run: make assets
|
||||||
|
|
||||||
- name: Porcelain
|
- name: Porcelain
|
||||||
|
|
@ -46,7 +46,7 @@ jobs:
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: golangci/golangci-lint-action@v2
|
||||||
with:
|
with:
|
||||||
version: v1.33
|
version: v1.37
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
@ -70,9 +70,12 @@ jobs:
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: make install-ui
|
run: make install-ui
|
||||||
|
|
||||||
- name: Assets & UI
|
- name: Build
|
||||||
run: make ui
|
run: make ui
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: make lint-ui
|
||||||
|
|
||||||
- name: Porcelain
|
- name: Porcelain
|
||||||
run: |
|
run: |
|
||||||
test -z "$(git status --porcelain)" || (git status; git diff; false)
|
test -z "$(git status --porcelain)" || (git status; git diff; false)
|
||||||
|
|
@ -160,7 +163,7 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.14
|
go-version: ^1.16
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Prepare Image
|
- name: Prepare Image
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -14,3 +14,4 @@ flags/*
|
||||||
buildflags/*
|
buildflags/*
|
||||||
linux-*.Dockerfile
|
linux-*.Dockerfile
|
||||||
node_modules
|
node_modules
|
||||||
|
release
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
dist: release
|
||||||
release:
|
release:
|
||||||
github:
|
github:
|
||||||
owner: andig
|
owner: andig
|
||||||
|
|
@ -28,8 +29,6 @@ archives:
|
||||||
- builds:
|
- builds:
|
||||||
- evcc
|
- evcc
|
||||||
replacements:
|
replacements:
|
||||||
amd64: 64-bit
|
|
||||||
386: 32-bit
|
|
||||||
darwin: macOS
|
darwin: macOS
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
format_overrides:
|
format_overrides:
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ RUN make install-ui
|
||||||
# build ui
|
# build ui
|
||||||
COPY assets assets
|
COPY assets assets
|
||||||
COPY vue.config.js vue.config.js
|
COPY vue.config.js vue.config.js
|
||||||
|
COPY .eslintrc.js .eslintrc.js
|
||||||
RUN make clean ui
|
RUN make clean ui
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
7
Makefile
7
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: default all clean install install-ui ui assets lint test build test-release release
|
.PHONY: default all clean install install-ui ui assets lint lint-ui test build test-release release
|
||||||
.PHONY: docker publish-testing publish-latest publish-images
|
.PHONY: docker publish-testing publish-latest publish-images
|
||||||
.PHONY: prepare-image image-rootfs image-update
|
.PHONY: prepare-image image-rootfs image-update
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ IMAGE_OPTIONS := -hostname evcc -http_port 8080 github.com/gokrazy/serial-busybo
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
all: clean install install-ui ui assets lint test build
|
all: clean install install-ui ui assets lint lint-ui test build
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf dist/
|
rm -rf dist/
|
||||||
|
|
@ -42,6 +42,8 @@ assets:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
|
||||||
|
lint-ui:
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
|
@ -79,6 +81,7 @@ publish-images:
|
||||||
|
|
||||||
prepare-image:
|
prepare-image:
|
||||||
go get github.com/gokrazy/tools/cmd/gokr-packer@latest
|
go get github.com/gokrazy/tools/cmd/gokr-packer@latest
|
||||||
|
go get github.com/gokrazy/rpi-eeprom@latest
|
||||||
mkdir -p flags/github.com/gokrazy/breakglass
|
mkdir -p flags/github.com/gokrazy/breakglass
|
||||||
echo "-forward=private-network" > flags/github.com/gokrazy/breakglass/flags.txt
|
echo "-forward=private-network" > flags/github.com/gokrazy/breakglass/flags.txt
|
||||||
mkdir -p buildflags/github.com/andig/evcc
|
mkdir -p buildflags/github.com/andig/evcc
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ RUN make install-ui
|
||||||
# build ui
|
# build ui
|
||||||
COPY assets assets
|
COPY assets assets
|
||||||
COPY vue.config.js vue.config.js
|
COPY vue.config.js vue.config.js
|
||||||
|
COPY .eslintrc.js .eslintrc.js
|
||||||
RUN make clean ui
|
RUN make clean ui
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue