Skip to content

Commit

Permalink
Merge pull request #46 from pkuehnel/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pkuehnel authored Mar 15, 2022
2 parents c9ec735 + 6592588 commit f0a910d
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 71 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/alphaRelease.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: alphaRelease

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

Expand All @@ -15,6 +13,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -29,7 +30,7 @@ jobs:
uses: docker/build-push-action@v2
with:
file: ./SmartTeslaAmpSetter/Server/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: pkuehnel/smartteslaampsetter:alpha

Expand All @@ -41,6 +42,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -55,6 +59,6 @@ jobs:
uses: docker/build-push-action@v2
with:
file: ./Plugins.SmaEnergymeter/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: pkuehnel/smartteslaampsettersmaplugin:alpha
10 changes: 8 additions & 2 deletions .github/workflows/edgeRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -29,7 +32,7 @@ jobs:
uses: docker/build-push-action@v2
with:
file: ./SmartTeslaAmpSetter/Server/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: pkuehnel/smartteslaampsetter:edge

Expand All @@ -41,6 +44,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -55,6 +61,6 @@ jobs:
uses: docker/build-push-action@v2
with:
file: ./Plugins.SmaEnergymeter/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: pkuehnel/smartteslaampsettersmaplugin:edge
135 changes: 72 additions & 63 deletions .github/workflows/versionRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ jobs:
name: Release
strategy:
matrix:
kind: ['linux-x64', 'linux-arm64']
kind: ['linux-x64', 'linux-arm64','linux/arm/v7']
include:
- kind: linux-x64
os: ubuntu-latest
target: linux-x64
- kind: linux-arm64
os: ubuntu-latest
target: linux-arm64
- kind: linux/arm/v7
os: ubuntu-latest
target: linux/arm/v7
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
Expand Down Expand Up @@ -70,71 +76,74 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
pkuehnel/smartteslaampsetter
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: DockerHub login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS}}

- name: Build and push SmartTeslaAmpSetter
uses: docker/build-push-action@v2
with:
file: ./SmartTeslaAmpSetter/Server/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
pkuehnel/smartteslaampsetter
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: DockerHub login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS}}

- name: Build and push SmartTeslaAmpSetter
uses: docker/build-push-action@v2
with:
file: ./SmartTeslaAmpSetter/Server/Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ steps.meta.outputs.tags }}

releaseDockerLatestSmaEnergymeterplugin:
name: Building SMAPlugin Image
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
pkuehnel/smartteslaampsettersmaplugin
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: DockerHub login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS}}

- name: Build and push SmaPlugin
uses: docker/build-push-action@v2
with:
file: ./Plugins.SmaEnergymeter/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
pkuehnel/smartteslaampsettersmaplugin
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
- name: Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: DockerHub login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS}}
- name: Build and push SmaPlugin
uses: docker/build-push-action@v2
with:
file: ./Plugins.SmaEnergymeter/Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion Plugins.SmaEnergymeter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim-amd64 AS build
WORKDIR /src
COPY ["Plugins.SmaEnergymeter/Plugins.SmaEnergymeter.csproj", "Plugins.SmaEnergymeter/"]
RUN dotnet restore "Plugins.SmaEnergymeter/Plugins.SmaEnergymeter.csproj"
Expand Down
2 changes: 1 addition & 1 deletion SmartTeslaAmpSetter/Server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim-amd64 AS build
WORKDIR /src
COPY ["SmartTeslaAmpSetter/Server/SmartTeslaAmpSetter.Server.csproj", "SmartTeslaAmpSetter/Server/"]
COPY ["SmartTeslaAmpSetter/Client/SmartTeslaAmpSetter.Client.csproj", "SmartTeslaAmpSetter/Client/"]
Expand Down

0 comments on commit f0a910d

Please sign in to comment.