Skip to content

Update Dockerfile to install Flask library #10

Update Dockerfile to install Flask library

Update Dockerfile to install Flask library #10

Workflow file for this run

name: Build and Push Docker image
on:
push:
branches:
- main # or any other branch you want to trigger on
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/arm64,linux/arm/v7
push: true
tags: ghcr.io/${{ github.repository_owner }}/mqtt-gpio-switch:latest