Skip to content

another typofix for the fedora39 docker image #15

another typofix for the fedora39 docker image

another typofix for the fedora39 docker image #15

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Publish Docker image
on:
release:
types: [published]
push:
tags:
- "v*"
branches:
- "main"
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
strategy:
matrix:
dockername: [fedora37, fedora38, fedora39]
include:
- dockername: "fedora38"
extratags: ", naudit/rpm-builder:latest"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.${{ matrix.dockername }}
push: true
tags: naudit/rpm-builder:${{ matrix.dockername }} ${{ matrix.extratags }}