mirror of
https://github.com/esphome/esphome.git
synced 2024-12-04 13:44:40 +01:00
09f9d91577
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
---
|
|
name: CI for docker images
|
|
|
|
# Only run when docker paths change
|
|
|
|
on:
|
|
push:
|
|
branches: [dev, beta, release]
|
|
paths:
|
|
- "docker/**"
|
|
- ".github/workflows/ci-docker.yml"
|
|
- "requirements*.txt"
|
|
- "platformio.ini"
|
|
- "script/platformio_install_deps.py"
|
|
|
|
pull_request:
|
|
paths:
|
|
- "docker/**"
|
|
- ".github/workflows/ci-docker.yml"
|
|
- "requirements*.txt"
|
|
- "platformio.ini"
|
|
- "script/platformio_install_deps.py"
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
|
|
concurrency:
|
|
# yamllint disable-line rule:line-length
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-docker:
|
|
name: Build docker containers
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch: [amd64, armv7, aarch64]
|
|
build_type: ["ha-addon", "docker", "lint"]
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5.3.0
|
|
with:
|
|
python-version: "3.9"
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3.7.1
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3.2.0
|
|
|
|
- name: Set TAG
|
|
run: |
|
|
echo "TAG=check" >> $GITHUB_ENV
|
|
|
|
- name: Run build
|
|
run: |
|
|
docker/build.py \
|
|
--tag "${TAG}" \
|
|
--arch "${{ matrix.arch }}" \
|
|
--build-type "${{ matrix.build_type }}" \
|
|
build
|