Skip to content

Add SELinux as platform #7812

Add SELinux as platform

Add SELinux as platform #7812

Workflow file for this run

name: Github Pages
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
jobs:
publish:
name: Publish stats, tables and guides
runs-on: ubuntu-latest
container:
image: fedora:latest
env:
PAGES_DIR: __pages
steps:
- name: Install Deps
run: dnf install -y cmake git ninja-build openscap-utils python3-pyyaml python3-jinja2 python3-pytest ansible-lint libxslt python3-pip rsync python3-lxml
- name: Install deps python
run: pip3 install json2html prometheus_client
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug
working-directory: ./build
- name: Build Guides and Mapping Tables
run: ninja -j2
working-directory: ./build
- name: Build Statistics
run: ninja html-stats html-profile-stats -j2
working-directory: ./build
- name: Render Policies (Using control files)
run: ninja render-policies -j2
working-directory: ./build
- name: Generate Prometheus Metrics
run: utils/controleval_metrics.py prometheus -p fedora ocp4 rhcos4 rhel9 rhel8 rhel7 sle12 sle15 -f ./build/policies_metrics
env:
PYTHONPATH: ${{ github.workspace }}
- name: Generate HTML pages
run: utils/generate_html_pages.sh $PAGES_DIR
shell: bash
env:
PYTHONPATH: ${{ github.workspace }}
- name: Configure git to trust the workspace despite the different owner
run:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Deploy
if: ${{ github.event_name == 'push' && github.repository == 'ComplianceAsCode/content' }}
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: main # The branch the action should deploy to.
folder: ${{ env.PAGES_DIR }} # The folder the action should deploy.
clean-exclude: srg_mapping/*
repository-name: ComplianceAsCode/content-pages
single-commit: true
token: ${{ secrets.CONTENT_PAGES_TOKEN }}
git-config-name: openscap-ci
git-config-email: openscap-ci@gmail.com
- name: Upload artifact if the event is pull request
uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'pull_request' }}
with:
name: built-content
path: ${{ env.PAGES_DIR }}