Merge pull request #706 from cjkrolak/703_nest_integration #310
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ main, develop ] | |
# pull_request: | |
# branches: [ main, develop ] | |
# docker build should run on push after code is merged into branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v4 | |
# https://github.com/docker/setup-qemu-action | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
# https://github.com/docker/setup-buildx-action | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push the multi-platform Docker image | |
run: docker buildx build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/thermostatsupervisor:${{github.ref_name}} --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --push | |