Skip to content

OpenSuse Build

OpenSuse Build #148

Workflow file for this run

name: OpenSuse Build
on:
workflow_dispatch:
inputs:
series:
description: Series of glusterfs that is to built and packaged
required: true
version:
description: Version of glusterfs that is to built and packaged
required: true
flavor:
description: Flavor of SUSE you want to build against. Ex. tumbleweed / sles15 / sles12 / leap15
required: true
susebranch:
description: Add appropiate branch name from https://build.opensuse.org/project/subprojects/home:glusterfs. Ex. Tumbleweed-7
required: true
jobs:
build:
runs-on: ubuntu-latest
env:
USER: ${{ secrets.SUSE_USER }}
PASSWORD: ${{ secrets.SUSE_PASSWORD }}
INPUT_FLAVOR: ${{ github.event.inputs.flavor}}
INPUT_SERIES: ${{ github.event.inputs.series}}
INPUT_VERSION: ${{ github.event.inputs.version}}
INPUT_SUSEBRANCH: ${{ github.event.inputs.susebranch}}
steps:
- shell: bash
run: |
echo "$USER"
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get -y install osc
sudo apt-get install python-dev-is-python3
sudo apt-get install m2crypto
mkdir -p ~/.config/osc/
cat <<EOT >> ~/.config/osc/oscrc
[general]
apiurl = https://api.opensuse.org
[https://api.opensuse.org]
keyring=1
user=$USER
pass=$PASSWORD
credentials_mgr_class=osc.credentials.PlaintextConfigFileCredentialsManager
EOT
cat ~/.config/osc/oscrc
- name: clone-gluster-suse
run: |
git config --global user.email "[email protected]"
git config --global user.name "Gluster"
chmod +x clone-gluster-suse.sh
./clone-gluster-suse.sh $INPUT_FLAVOR $INPUT_SERIES $INPUT_VERSION
- name: trigger-build
run: |
chmod +x trigger-build.sh
./trigger-build.sh $INPUT_SUSEBRANCH $INPUT_SERIES $INPUT_VERSION