mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
* Autogenerate the documentation and strings * Line limit * Split * Happy pre-commit * Split up workflows * Generate table function * raise * Add gen script * chore(docs): update TOC * Add gen script * path * Run - name: Install Home Assistant * chore(docs): update TOC * add copyright * Fix branch name * Run on PRs * dev * remove steps * use matrix * Run script * chore(docs): update TOC * Try fixing CI * fix * test * refactor * chore(docs): update TOC * fix * update * use v3 * rename * Fix input * fix pytest * fix path * paths * Change to github.head_ref * More backticks * Add extra text * chore(docs): update TOC * backticks * Update README.md --------- Co-authored-by: basnijholt <basnijholt@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
33 lines
863 B
YAML
33 lines
863 B
YAML
name: docker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
steps:
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
# Only push on the master branch
|
|
push: ${{ github.ref == 'refs/heads/master' }}
|
|
platforms: ${{ matrix.platform }}
|
|
tags: ${{ secrets.DOCKERHUB_USERNAME }}/adaptive-lighting:latest
|