From 87d246831364a442dc76714ee4d03f3d30a6f486 Mon Sep 17 00:00:00 2001 From: Sergey Ladanov Date: Wed, 13 Sep 2023 13:50:57 +0300 Subject: [PATCH] add --- Dockerfile | 9 +++++++++ README.md | 16 ++++++++++++++++ action.yml | 9 +++++++++ 3 files changed, 34 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 action.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..244ddf2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:stable-slim + +RUN apt-get update && \ + apt-get install \ + python3 \ + python3-pip \ + -y && \ + rm -rf /var/cache/apt && \ + pip3 install platformio \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..9bac4c9 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +## Пример настройки CI/CD + +``` + +jobs: + build: + name: Building project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Build + uses: embedd-actions/platformio-ci@v1 + + +``` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..f06496c --- /dev/null +++ b/action.yml @@ -0,0 +1,9 @@ +name: 'Platformio build' +description: 'Building platformio projects' +runs: + using: 'docker' + image: 'Dockerfile' + args: + - pio + - run +