-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.69 KB
/
dh_pub.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"
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@v3
- 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 flavour
run: PATH=./:$PATH bash ./shx submit alpine
- name: Build and push the Debian Slim flavour
run: PATH=./:$PATH bash ./shx submit slimdeb
- name: Build and push the Debian flavour
run: PATH=./:$PATH bash ./shx submit debian
- name: Build and push the openSUSE Slim flavour
run: PATH=./:$PATH bash ./shx submit slimsuse
- name: Build and push the openSUSE flavour
run: PATH=./:$PATH bash ./shx submit opensuse
- 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