mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 02:34:12 +01:00
40 lines
870 B
YAML
40 lines
870 B
YAML
name: CI for docker images
|
|
|
|
# Only run when docker paths change
|
|
on:
|
|
push:
|
|
branches: [dev, beta, release]
|
|
paths:
|
|
- 'docker/**'
|
|
- '.github/workflows/**'
|
|
|
|
pull_request:
|
|
paths:
|
|
- 'docker/**'
|
|
- '.github/workflows/**'
|
|
|
|
jobs:
|
|
check-docker:
|
|
name: Build docker containers
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
arch: [amd64, armv7, aarch64]
|
|
build_type: ["ha-addon", "docker", "lint"]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.9'
|
|
- 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
|