Skip to content

Commit

Permalink
Merge branch 'development' into new-release
Browse files Browse the repository at this point in the history
  • Loading branch information
benzino77 committed Feb 18, 2024
2 parents a030fd1 + f3a0f3a commit 6454076
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build Docker Image
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build from'
required: true
type: choice
default: 'master'
options:
- 'master'
- 'development'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Load Buildx
run: docker buildx create --name mybuilder --use
if: runner.os == 'Linux'

- name: Login to Docker Hub
uses: docker/#-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Extract version from package.json
if: ${{ github.event.inputs.branch == 'master' }}
run: echo "DOCKER_TAG=$(jq -r '.version' package.json)" >> $GITHUB_ENV

- name: Build and push production Docker image
if: ${{ github.event.inputs.branch == 'master' }}
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-t benzino77/tasmocompiler:$DOCKER_TAG \
-t benzino77/tasmocompiler:latest \
-f Dockerfile --push .
- name: Build and push development Docker image
if: ${{ github.event.inputs.branch == 'development' }}
run: |
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-t benzino77/tasmocompiler:development \
-f Dockerfile --push .
3 changes: 2 additions & 1 deletion src/components/AppStepper/FeaturesStep/AvailableFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ const availableFeatures = [
lib_extra_dirs: ['lib/libesp32', 'lib/libesp32_div', 'lib/lib_basic', 'lib/lib_i2c', 'lib/lib_ssl'],
},
custom: '',
boards: ['esp32generic', 'esp32webcam', 'esp32odroid-go', 'esp32m5', 'esp32solo1', 'esp32c3'],
boards: ['esp32generic', 'esp32webcam', 'esp32odroid-go', 'esp32m5', 'esp32solo1', 'esp32c3', 'esp32s3'],
},
{
name: 'USE_ETHERNET',
Expand All @@ -427,6 +427,7 @@ const availableFeatures = [
'//!!! Please read https://tasmota.github.io/docs/Blinds-and-Shutters/#specific-configuration to understand what this option is for !!!\n' +
'\n' +
'//#define SHUTTER_CLEAR_PWM_ONSTOP\n',
include: ['USE_ENERGY_SENSOR'],
boards: ['all'],
},
{
Expand Down

0 comments on commit 6454076

Please # to comment.