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

Test secrets in workflow [Do not merge] #113

Closed
wants to merge 12 commits into from
19 changes: 14 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: pull_request

on:
pull_request:
pull_request_target:
branches:
- '**'
- 'master'

concurrency:
group: ${{ github.head_ref }}
Expand Down Expand Up @@ -57,7 +57,14 @@ jobs:
install-gcc --version=${{ matrix.compiler }}
echo "COMPILER_VERSION=${{ matrix.compiler }}" >> $GITHUB_ENV
- name: Pre-Build
env:
URL: ${{ secrets.MINIO_ENDPOINT }}
KEY: ${{ secrets.MINIO_KEY }}
SECRET: ${{ secrets.MINIO_SECRET }}
run: |
echo "test echo ${{ env.URL }}"
echo "test echo ${{ env.KEY }}"
echo "test echo ${{ env.SECRET }}"
echo "path=$(pwd)" >> $GITHUB_ENV
cd ..
if [ -d "build" ]; then
Expand All @@ -75,14 +82,16 @@ jobs:
export PATH=${TOOLSET_GCC_DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${TOOLSET_GCC_DIR}/lib64:$LD_LIBRARY_PATH
fi
build_package=1 ${{ env.path }}/build.sh
#build_package=1 ${{ env.path }}/build.sh
mkdir packages
dd if=/dev/zero of=./packages/$(date +%Y-%m-%d-%H-%M-%S).bin bs=4M count=1
working-directory: ../build/

- name: Setup MinIO
uses: vesoft-inc/.github/actions/setup-minio@master
- uses: vesoft-inc/.github/actions/setup-minio@master
with:
minio_url: ${{ secrets.MINIO_ENDPOINT }}
access_key: ${{ secrets.MINIO_KEY }}
secret_key: ${{ secrets.MINIO_SECRET }}

- name: Copy dir to MinIO
run: mc cp -r ../build/packages/ minio/pr-build/third-party/5.0/