Skip to content

Build Docker Image #182

Build Docker Image

Build Docker Image #182

Workflow file for this run

name: Build Docker Image
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '13 4 * * *'
jobs:
build:
strategy:
matrix:
version: [8, 9]
os: [rockylinux, almalinux, oraclelinux]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: sensson/rpmbuild:${{ matrix.os }}-${{ matrix.version }}
build-args: |
FROM: ${{ matrix.os }}
VERSION: ${{ matrix.version }}