Skip to content

Build for Docker Hub #117

Build for Docker Hub

Build for Docker Hub #117

Workflow file for this run

name: Build for Docker Hub
# 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.
on:
schedule:
- cron: '30 8 * * 5'
push:
branches: [ "main" ]
paths:
- "build_version"
- ".github/workflows/**_pub.yml"
workflow_dispatch:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
DH_ACCT: ${{ secrets.DH_USER }}
DH_USER: ltgc
DH_PASS: ${{ secrets.DH_PASS }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to ${{ env.REGISTRY }}
uses: redhat-actions/podman-login@v1
with:
username: ${{ env.DH_ACCT }}
password: ${{ env.DH_PASS }}
registry: ${{ env.REGISTRY }}
- name: Generate distributable directory structure
run: PATH=./:$PATH bash ./shx buildTree
- name: Build and push the Alpine Slim flavour
run: PATH=./:$PATH bash ./shx submit slimalp
- name: Build and push the Debian Slim flavour
run: PATH=./:$PATH bash ./shx submit slimdeb
- name: Build and push the openSUSE Slim flavour
run: PATH=./:$PATH bash ./shx submit slimsuse
- name: Build and push the Alma Slim flavour
run: PATH=./:$PATH bash ./shx submit slimalma
- name: Build and push the Rocky Slim flavour
run: PATH=./:$PATH bash ./shx submit slimrock
- name: Build and push the Photon flavour
run: PATH=./:$PATH bash ./shx submit photon
- name: Build and push the Alpine flavour
run: PATH=./:$PATH bash ./shx submit alpine
- name: Build and push the Debian flavour
run: PATH=./:$PATH bash ./shx submit debian
- name: Build and push the openSUSE flavour
run: PATH=./:$PATH bash ./shx submit opensuse
- name: Build and push the Alma flavour
run: PATH=./:$PATH bash ./shx submit alma
- name: Build and push the Rocky flavour
run: PATH=./:$PATH bash ./shx submit rocky
# - name: Build and push the Fedora flavour
# run: PATH=./:$PATH bash ./shx submit fedora