Skip to content

prepare 0.48.0 release #152

prepare 0.48.0 release

prepare 0.48.0 release #152

name: Upload Edge Docker Image
on:
push:
branches: [ main ]
paths:
- .github/workflows/python-docker-edge.yml
- docker/Dockerfile-edge
- weconnect_mqtt/**
- '**requirements.txt'
- '**.cfg'
- '**.py'
jobs:
docker-deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: |
tillsteinbach/weconnect-mqtt
ghcr.io/tillsteinbach/weconnect-mqtt
tags: |
type=edge
- name: Set up QEMU
uses: docker/[email protected]
- name: Setup Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/[email protected]
with:
context: .
file: docker/Dockerfile-edge
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max