Skip to content

Commit

Permalink
Attempting to build CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindk89 committed Nov 13, 2024
1 parent d9d1532 commit a2cfc14
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Makefile CI

on:
push:
branches: [ "main" ]
pull_request:
type: ["opened","synchronize"]
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: install-python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: pip-requirements
run: pip install -r requirements.txt

- name: npm-setup
uses: actions/setup-node@v4
with:
node-version: 20

- name: npm-install-setup
uses: bahmutov/npm-install@v1
with:
working-directory: ./

- name: build-docs
run: ./build-docs-ci.sh

- name: upload-artifact
uses: actions/upload-artifact@v4
with:
name: minio-docs-artifact
compression-level: 9
path: ./docs/
39 changes: 39 additions & 0 deletions build-docs-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

set -ex

branch=$(git branch --show-current)

export PATH=${PATH}:${HOME}/.local/bin


make SYNC_SDK=TRUE linux
make windows macos container k8s openshift eks aks gke

mkdir -p docs/minio/kubernetes/upstream
cp -vr build/${branch}/k8s/html/* docs/minio/kubernetes/upstream/

mkdir -p docs/minio/kubernetes/eks
cp -vr build/${branch}/eks/html/* docs/minio/kubernetes/eks/


mkdir -p docs/minio/kubernetes/gke
cp -vr build/${branch}/gke/html/* docs/minio/kubernetes/gke/

mkdir -p docs/minio/kubernetes/aks
cp -vr build/${branch}/aks/html/* docs/minio/kubernetes/aks/

mkdir -p docs/minio/kubernetes/openshift
cp -vr build/${branch}/openshift/html/* docs/minio/kubernetes/openshift/

mkdir -p docs/minio/container
cp -vr build/${branch}/container/html/* docs/minio/container/

mkdir -p docs/minio/linux
cp -vr build/${branch}/linux/html/* docs/minio/linux/

mkdir -p docs/minio/macos
cp -vr build/${branch}/macos/html/* docs/minio/macos/

mkdir -p docs/minio/windows
cp -vr build/${branch}/windows/html/* docs/minio/windows/

0 comments on commit a2cfc14

Please sign in to comment.