Skip to content

Docker Image CI

Docker Image CI #38

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
inputs:
version:
description: "Azure IOT Edge Version"
required: true
default: "1.1.15-1"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2.3.0
with:
context: ./build-context
file: ./build-context/Dockerfile
platforms: linux/amd64,linux/arm/v7
build-args: |
IOTEDGE_VERSION=${{ github.event.inputs.version }}
push: true
tags: |
wagoautomation/azure-iot-edge:${{ github.event.inputs.version }}
wagoautomation/azure-iot-edge:latest
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1.1.3
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: WAGO/corporate-azure-iot-edge
event-type: azure-iot-edge-build
client-payload: '{"message": {"version": "${{ github.event.inputs.version }}"}}'