Skip to content

Commit

Permalink
ci: Migrate obs to databend labs sponsored bucket (#3137)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Sep 19, 2023
1 parent d39a275 commit f846b6a
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/service_test_obs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,28 @@ concurrency:
jobs:
obs:
runs-on: ubuntu-latest
if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' && github.repository == 'apache/incubator-opendal') || !github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-nextest: true

- name: Load secret
id: op-load-secret
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
OPENDAL_OBS_TEST: op://services/obs/test
OPENDAL_OBS_BUCKET: op://services/obs/bucket
OPENDAL_OBS_ENDPOINT: op://services/obs/endpoint
OPENDAL_OBS_ACCESS_KEY_ID: op://services/obs/access_key_id
OPENDAL_OBS_SECRET_ACCESS_KEY: op://services/obs/secret_access_key

- name: Test
shell: bash
working-directory: core
run: cargo nextest run obs
env:
OPENDAL_OBS_TEST: ${{ secrets.OPENDAL_OBS_TEST }}
OPENDAL_OBS_BUCKET: ${{ secrets.OPENDAL_OBS_BUCKET }}
OPENDAL_OBS_ENDPOINT: ${{ secrets.OPENDAL_OBS_ENDPOINT }}
OPENDAL_OBS_ACCESS_KEY_ID: ${{ secrets.OPENDAL_OBS_ACCESS_KEY_ID }}
OPENDAL_OBS_SECRET_ACCESS_KEY: ${{ secrets.OPENDAL_OBS_SECRET_ACCESS_KEY }}

0 comments on commit f846b6a

Please sign in to comment.