Skip to content

Commit

Permalink
try to fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbaun committed Sep 20, 2024
1 parent 486af77 commit 3c4a41c
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
run-workflow:
runs-on: self-hosted

env:
MIN_USER: ${{ secrets.MINIO_USER }}
MIN_PASS: ${{ secrets.MINIO_PASS }}

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -20,17 +25,19 @@ jobs:
fi
- name: Start Minio Server
env:
MIN_USER: ${{ secrets.MINIO_USER }}
MIN_PASS: ${{ secrets.MINIO_PASS }}
run: |
docker run -d --name minio -p 9000:9000 -e "MINIO_ROOT_USER=${MIN_USER}" -e "MINIO_ROOT_PASSWORD=${MIN_PASS}" minio/minio server /data
docker run -d --name minio \
-p 9000:9000 \
-e MINIO_ROOT_USER=$MIN_USER \
-e MINIO_ROOT_PASSWORD=$MIN_PASS \
minio/minio server /data
- name: Wait for Minio Server to Start
run: |
sleep 5
- name: Create or update MinIO client (mc) config
- name: Configure MinIO client
run: |
mc config host add myminio http://localhost:9000 minioadmin minioadmin
mc config host add myminio http://localhost:9000 $MIN_USER $MIN_PASS
mc alias list
- name: Run ossperf.sh
run: |
cd $GITHUB_WORKSPACE
Expand Down

0 comments on commit 3c4a41c

Please sign in to comment.