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

Attempting to build CI/CD #1368

Merged
merged 1 commit into from
Nov 22, 2024
Merged
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
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