name: Node-Red

on:
  workflow_dispatch:
    inputs:
      node-red-version:
        description: 'Node-Red version'
        required: true
        default: '2.0.5'

jobs:
  build_multi_arch_images:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1.2.0

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1.5.1

      - name: Login to DockerHub
        uses: docker/login-action@v1.10.0 
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      - name: Build and push node-red
        id: docker_build
        uses: docker/build-push-action@v2.7.0
        with:
          context: node-red
          push: true
          tags: |
            cpswan/node-red:latest
            cpswan/node-red:${{ github.event.inputs.node-red-version }}
          platforms: |
            linux/amd64
            linux/arm64/v8
            linux/arm/v7    
name: Node-Red

on:
  workflow_dispatch:
    inputs:
      node-red-version:
        description: 'Node-Red version'
        required: true
        default: '2.0.5'

jobs:
  build_multi_arch_images:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1.2.0

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1.6.0

      - name: Login to DockerHub
        uses: docker/login-action@v1.10.0 
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      - name: Build and push node-red
        id: docker_build
        uses: docker/build-push-action@v2.7.0
        with:
          context: node-red
          push: true
          tags: |
            cpswan/node-red:latest
            cpswan/node-red:${{ github.event.inputs.node-red-version }}
          platforms: |
            linux/amd64
            linux/arm64/v8
            linux/arm/v7    
Bump docker/setup-buildx-action from 1.5.1 to 1.6.0
Bump docker/setup-buildx-action from 1.5.1 to 1.6.0

Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@github.com>