Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub actions #17

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/Manual_Centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Running Build in Centos7 Container
run: docker run --name container_gluster -v /build-out:/out gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-rpms
path: /build-out/*.rpm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Manual_Centos8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Running Build in Centos8 Container
run: docker run --name container_gluster -v /build-out:/out gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-rpms
path: /build-out/*.rpm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Manual_Fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Running Build in Fedora Container
run: docker run --name container_gluster -v /build-out:/out gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-rpms
path: /build-out/*.rpm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Nightly_Build_Centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Running Build in Centos7 Container
run: docker run --name container_gluster -v /build-out:/out quay.io/gluster/centos7-gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-rpms
path: /build-out/*.rpm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Nightly_Build_Centos8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Running Build in Centos8 Container
run: docker run --name container_gluster -v /build-out:/out quay.io/gluster/centos8-gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-rpms
path: /build-out/*.rpm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Nightly_Build_Fedora_Latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Nightly Build (fedora/quay)

on:
schedule:
- cron: ' 45 0 * * *'
- cron: '45 0 * * *'


jobs:
Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Running Build in Fedora Container
run: docker run --name container_gluster -v /build-out:/out quay.io/gluster/fedora-gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-rpms
path: /build-out/*.rpm
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/custom-branch-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@ on:
buildosflavor:
description: 'Select the OS Flavour - centos / fedora / ubuntu / debian'
required: true
type: choice
options: ['centos', 'fedora', 'ubuntu', 'debian']
default: 'fedora'

buildosver:
description: 'Select the OS version - centos (7/stream8) / fedora(Fxx/latest) / ubuntu(impish/jammy) / debian(bullseye)'
required: true
options: ['7', 'stream8', 'F33', 'focal', 'bullseye']
default: 'F33'
type: choice
options: ['7', 'stream8', 'F38', 'focal', 'bullseye']
default: 'F38'

branchesflavor:
description: 'Select the Gluster Branch: eg:- devel, v10.1, v9.5,v8.6'
required: true
options: ['devel', 'v10.1', 'v9.5']
type: choice
options: ['devel', 'v11.1', 'v10.5', 'v9.6']
default: 'devel'

env:
Expand All @@ -34,7 +37,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand Down Expand Up @@ -119,7 +122,7 @@ jobs:
fi

- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-rpms
path: /build-out/*.*
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/manual-builds-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
buildosflavor:
description: 'centos7 / centos8 / fedora / ubuntu / debian'
required: true
type: choice
options: ['centos7', 'centos8', 'fedora', 'ubuntu', 'debian']
default: 'fedora'

Expand All @@ -15,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Running Build in ubuntu Container
run: docker run --security-opt seccomp=unconfined --name container_gluster -v /build-out:/out gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-deb
path: /build-out/*.*deb
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly-build-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Nightly Build (debian/quay)

on:
schedule:
- cron: ' 40 0 * * *'
- cron: '40 0 * * *'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Running Build in ubuntu Container
run: docker run --name container_gluster -v /build-out:/out quay.io/gluster/debian-gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-deb
path: /build-out/*.*deb
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly-build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Nightly Build (ubuntu/quay)

on:
schedule:
- cron: ' 35 0 * * *'
- cron: '35 0 * * *'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure Host
run: |
chmod +x Setup_Host.sh
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Running Build in ubuntu Container
run: docker run --security-opt seccomp=unconfined --name container_gluster -v /build-out:/out quay.io/gluster/ubuntu-gluster-build
- name: Upload Artifactory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: gluster-deb
path: /build-out/*.*deb
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/quay-monthly-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4

# Add an update to repo file to trigger quay build...
- run: echo "Quay Build is triggered on $(date)" >> ./Docker/monthly-trigger-log.txt

# ...and then use the action as you would normally do
- uses: EndBug/add-and-commit@v7
- uses: EndBug/add-and-commit@v9
with:
message: 'GitHub Actions Monthly Trigger'
add: 'monthly-trigger-log.txt --force'
Expand Down
7 changes: 4 additions & 3 deletions Docker/Centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ FROM centos:7
LABEL project="centos7-gluster-build"
LABEL maintainer "[email protected]"

RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

RUN yum -y --setopt tsflags=nodocs --enablerepo=extras install epel-release-7 autoconf automake bison cmockery2-devel \
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum install -y epel-release && \
yum -y --setopt tsflags=nodocs --enablerepo=extras install epel-release-7 autoconf automake bison cmockery2-devel \
dos2unix flex selinux-policy-devel rsync libcurl-devel fuse-devel glib2-devel libacl-devel libaio-devel libattr-devel \
libtool libxml2-devel make openssl-devel pkgconfig python-devel rpm-build readline-devel \
userspace-rcu-devel git userspace-rcu redhat-rpm-config rpcgen make libuuid-devel deltarpm firewalld gperftools-devel openssl
Expand Down