Feat/use cloud tesla tokens #2446
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: alphaRelease | |
on: | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
TeslaSolarCharger: | |
name: Building TeslaSolarCharger image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install minver CLI | |
run: dotnet tool install --tool-path ./minver minver-cli --version 4.3.0 | |
- name: Calculate version using minver CLI | |
id: version | |
run: | | |
echo "version=$(./minver/minver --default-pre-release-identifiers alpha --tag-prefix v)" >> "$GITHUB_ENV" | |
- name: Run unit tests | |
run: dotnet test TeslaSolarCharger.Tests | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: DockerHub login | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS}} | |
- name: Build and push TeslaSolarCharger | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/build-push-action@v4 | |
with: | |
build-args: MINVERVERSIONOVERRIDE=${{ env.version }} | |
file: ./TeslaSolarCharger/Server/Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: pkuehnel/teslasolarcharger:alpha | |
SmaEnergymeterPlugin: | |
name: Building SMAPlugin Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: DockerHub login | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS}} | |
- name: Build and push SmaPlugin | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/build-push-action@v4 | |
with: | |
file: ./Plugins.SmaEnergymeter/Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: pkuehnel/teslasolarchargersmaplugin:alpha | |
SolarEdgePlugin: | |
name: Building SolarEdgePlugin Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: DockerHub login | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS}} | |
- name: Build and push SolarEdgePlugin | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/build-push-action@v4 | |
with: | |
file: ./Plugins.SolarEdge/Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: pkuehnel/teslasolarchargersolaredgeplugin:alpha | |
ModbusPlugin: | |
name: Building ModbusPlugin Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: DockerHub login | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS}} | |
- name: Build and push ModbusPlugin | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/build-push-action@v4 | |
with: | |
file: ./Plugins.Modbus/Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: pkuehnel/teslasolarchargermodbusplugin:alpha | |
SolaxPlugin: | |
name: Building SolaxPlugin Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: DockerHub login | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS}} | |
- name: Build and push SolaxPlugin | |
if: ${{ github.actor == 'pkuehnel' }} | |
uses: docker/build-push-action@v4 | |
with: | |
file: ./Plugins.Solax/Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: pkuehnel/teslasolarchargersolaxplugin:alpha |