name: Create containers
on:
  workflow_dispatch:
  schedule:
    - cron:  '0 0 * * *'

permissions:
  contents: read

jobs:
  push_to_registry:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        os: [fedora, debian-x86_64, arch, debian-i386, void]

    steps:
      - name: Check out the repo
        uses: actions/checkout@v3
      - name: "Generate Dockerfile"
        env:
          OS: ${{ matrix.os }}
        run: ./contrib/ci/generate_docker.py
      - name: Push to GitHub Packages
        uses: docker/build-push-action@v3
        with:
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
          registry: docker.pkg.github.com
          repository: fwupd/fwupd/fwupd-${{matrix.os}}
          tags: latest

name: Create containers
on:
  workflow_dispatch:
  schedule:
    - cron:  '0 0 * * *'

permissions:
  contents: read

jobs:
  push_to_registry:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        os: [fedora, debian-x86_64, arch, debian-i386, void]

    steps:
      - name: Check out the repo
        uses: actions/checkout@v3
      - name: "Generate Dockerfile"
        env:
          OS: ${{ matrix.os }}
        run: ./contrib/ci/generate_docker.py
      - name: Push to GitHub Packages
        uses: docker/build-push-action@v1
        with:
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
          registry: docker.pkg.github.com
          repository: fwupd/fwupd/fwupd-${{matrix.os}}
          tags: latest

Revert "build(deps): bump docker/build-push-action from 1 to 3"
Revert "build(deps): bump docker/build-push-action from 1 to 3"

This reverts commit 77928fc4b37f62eb77863bbb99e2549deecfd56e.
