This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
64 lines (57 loc) · 2.54 KB
/
nightly_rebuild.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
54
55
56
57
58
59
60
61
62
63
64
#
# Builds containing rolling/testing/experimental OS distributions
# which are updated very frequently and because of that
# their docker images should be rebuilt every time.
#
# It is run at 00:00 UTC every day or on demand.
#
name: Nightly_Rebuild
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
env:
GITHUB_REPO: pmem/rpma
# use GitHub Container Registry as a repository of docker images
GH_CR_ADDR: ghcr.io
DOCKER_REPO: ghcr.io/pmem/rpma
# use org's Private Access Token to log in to GitHub Container Registry
GH_CR_USER: ${{ secrets.GH_CR_USER }}
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
DOC_UPDATE_GITHUB_TOKEN: ${{ secrets.DOC_UPDATE_GITHUB_TOKEN }}
HOST_WORKDIR: /home/runner/work/rpma/rpma
WORKDIR: utils/docker
TYPE: normal
jobs:
gcc:
name: GCC
runs-on: ubuntu-latest
env:
CC: gcc
PUSH_IMAGE: 1
strategy:
fail-fast: false
matrix:
# only rolling/testing/experimental distributions with rebuild:
CONFIG: ["N=Ubuntu_Rolling OS=ubuntu OS_VER=rolling REBUILD_ALWAYS=YES",
# the Fedora_Rawhide build was moved to Nightly_Experimental
"N=Debian_Testing OS=debian OS_VER=testing REBUILD_ALWAYS=YES",
"N=Debian_Experimental OS=debian OS_VER=experimental REBUILD_ALWAYS=YES",
"N=Arch_Linux_Latest OS=archlinux OS_VER=latest REBUILD_ALWAYS=YES",
# The CentOS_Stream build was moved to Nightly_Experimental,
# because the 'epel-release' repo of CentOS Stream cannot be found
# and this build has been failing for a long time.
#
# The OpenSUSE_Tumbleweed build was temporarily moved to Nightly_Experimental
# because of the following bug:
# https://bugzilla.opensuse.org/show_bug.cgi?id=1190670
"N=OpenSUSE_Leap OS=opensuse-leap OS_VER=latest REBUILD_ALWAYS=YES"]
steps:
- name: Clone the git repo
uses: actions/checkout@v1
- name: Pull or rebuild the image
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh
- name: Run the build
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./build.sh
- name: Push the image
run: cd $WORKDIR && source ./set-vars.sh && ${{ matrix.CONFIG }} /bin/bash -c "if [[ -f ${CI_FILE_PUSH_IMAGE_TO_REPO} ]]; then images/push-image.sh; fi"