Skip to content

Commit

Permalink
More CI/CD fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindk89 committed Dec 2, 2024
1 parent fdeadb4 commit 774f4d5
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
- name: upload-artifact
uses: actions/upload-artifact@v4
with:
name: minio-docs-artifact
name: assets
compression-level: 9
path: ./minio
42 changes: 42 additions & 0 deletions .github/workflows/minimal-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Makefile CI

on:
pull_request:
types: [opened, reopened, synchronize]

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-minimal.sh

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

set -ex

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


make SYNC_SDK=TRUE linux
make k8s

echo $(ls build)

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

mkdir -p minio/linux
cp -vr build/${GITDIR}/linux/html/* ./minio/linux/

0 comments on commit 774f4d5

Please sign in to comment.