This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new f846b6a44 ci: Migrate obs to databend labs sponsored bucket (#3137)
f846b6a44 is described below
commit f846b6a4413e4a977af1459df027b460fbdeefb2
Author: Xuanwo <[email protected]>
AuthorDate: Tue Sep 19 18:05:11 2023 +0800
ci: Migrate obs to databend labs sponsored bucket (#3137)
Signed-off-by: Xuanwo <[email protected]>
---
.github/workflows/service_test_obs.yml | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/service_test_obs.yml
b/.github/workflows/service_test_obs.yml
index bf3c9ca9d..e21d0e249 100644
--- a/.github/workflows/service_test_obs.yml
+++ b/.github/workflows/service_test_obs.yml
@@ -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 }}