Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charger/easee: comment #17935

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 154 additions & 0 deletions .github/workflows/release_custom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
name: docker build custom

env:
GO_VERSION: ^1.23

# on:
# push:
# tags:
# - "*"

jobs:
call-build-workflow:
if: startsWith(github.ref, 'refs/tags')
uses: evcc-io/evcc/.github/workflows/default.yml@master

docker:
name: Publish Docker :release
needs:
- call-build-workflow
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Login
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}

- name: Setup Buildx
uses: docker/setup-buildx-action@v3

- name: Meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository_owner }}/evcc-patched:latest

- name: Publish
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v6
push: true
build-args: |
RELEASE=1
TESLA_CLIENT_ID=${{ secrets.TESLA_CLIENT_ID }}
tags: ${{ steps.meta.outputs.tags }}

# apt:
# name: Github & APT
# needs:
# - call-build-workflow
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Setup Go
# uses: actions/setup-go@v5
# with:
# go-version: ${{ env.GO_VERSION }}
# id: go

# - name: Patch ASN1
# run: make patch-asn1-sudo

# - name: Get dist from cache
# uses: actions/cache/restore@v4
# id: cache-dist
# with:
# path: dist
# key: ${{ runner.os }}-${{ github.sha }}-dist

# # gokrazy image
# # - name: Prepare Image
# # run: |
# # make prepare-image
# # sed -i -e 's#-ld.*$#& -X github.com/evcc-io/evcc/server/updater.Password=${{ secrets.IMAGE_PASS }}#' buildflags/github.com/evcc-io/evcc/buildflags.txt
# # mkdir /home/runner/.config/gokrazy
# # echo ${{ secrets.IMAGE_PASS }}> /home/runner/.config/gokrazy/http-password.txt

# # - name: Build Image
# # run: make image

# # - name: Build Root Filesystem
# # run: make image-rootfs

# - name: Create Github Release
# uses: goreleaser/goreleaser-action@v6
# with:
# version: latest
# args: release --clean
# env:
# # use GH_TOKEN for access to evcc-io/homebrew-tap
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# TESLA_CLIENT_ID: ${{ secrets.TESLA_CLIENT_ID }}

# - uses: actions/setup-python@v5
# with:
# python-version: 3.12

# - name: Install Cloudsmith CLI
# run: pip install --upgrade cloudsmith-cli

# - name: Publish .deb to Cloudsmith
# env:
# CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
# run: make apt-release

# demo:
# name: Demo
# needs:
# - docker
# runs-on: ubuntu-latest
# env:
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: superfly/flyctl-actions/setup-flyctl@master
# - run: flyctl deploy --local-only --config packaging/fly.toml

# hassio:
# name: Hassio Addon
# needs:
# - docker
# runs-on: ubuntu-latest

# steps:
# - name: Checkout
# uses: actions/checkout@master
# with:
# repository: evcc-io/hassio-addon
# token: ${{ secrets.GH_TOKEN }}
# path: ./hassio

# - name: Update version
# run: |
# sed -i -e s#version.*#version\:\ $(echo ${{ github.ref }} | sed -e s#refs/tags/##)# ./hassio/evcc/config.yaml

# - name: Push
# run: |
# cd ./hassio
# git add .
# git config user.name github-actions
# git config user.email [email protected]
# git commit -am "Mirror evcc release"
# git push
6 changes: 3 additions & 3 deletions charger/easee.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func NewEaseeFromConfig(other map[string]interface{}) (api.Charger, error) {
func NewEasee(user, password, charger string, timeout time.Duration, authorize bool) (*Easee, error) {
log := util.NewLogger("easee").Redact(user, password)

if !sponsor.IsAuthorized() {
return nil, api.ErrSponsorRequired
}
// if !sponsor.IsAuthorized() {
// return nil, api.ErrSponsorRequired
// }

done := make(chan struct{})

Expand Down