fwupd/.github/workflows/create_containers.yml
dependabot[bot] 689fc23957 build(deps): bump docker/build-push-action from 3 to 4
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 13:04:11 -06:00

42 lines
1.0 KiB
YAML

name: Create containers
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
push_to_registry:
permissions:
packages: write # for docker/build-push-action
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: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Packages
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/fwupd/fwupd/fwupd-${{matrix.os}}:latest