Skip to content

Commit

Permalink
Attempting to build CI/CD (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindk89 authored Nov 22, 2024
1 parent 0b1d9a7 commit 184b665
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Makefile CI

on:
push:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: checkout
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: wrap-artifact
run: ./wrap-artifact.sh

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

set -ex

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


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

mkdir -p minio/kubernetes/upstream
cp -vr build/HEAD/k8s/html/* ./minio/kubernetes/upstream/

mkdir -p minio/kubernetes/eks
cp -vr build/HEAD/eks/html/* ./minio/kubernetes/eks/


mkdir -p minio/kubernetes/gke
cp -vr build/HEAD/gke/html/* ./minio/kubernetes/gke/

mkdir -p minio/kubernetes/aks
cp -vr build/HEAD/aks/html/* ./minio/kubernetes/aks/

mkdir -p minio/kubernetes/openshift
cp -vr build/HEAD/openshift/html/* ./minio/kubernetes/openshift/

mkdir -p minio/container
cp -vr build/HEAD/container/html/* ./minio/container/

mkdir -p minio/linux
cp -vr build/HEAD/linux/html/* ./minio/linux/

mkdir -p minio/macos
cp -vr build/HEAD/macos/html/* ./minio/macos/

mkdir -p minio/windows
cp -vr build/HEAD/windows/html/* ./minio/windows/
1 change: 0 additions & 1 deletion sync-docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

set -e
set -x

function replace() {
tmp_prefix=${RANDOM}
Expand Down
1 change: 0 additions & 1 deletion sync-minio-server-docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

set -e
set -x

function main() {

Expand Down

0 comments on commit 184b665

Please sign in to comment.