This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 249
41 lines (38 loc) · 1.64 KB
/
preview-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Preview
on:
pull_request:
types: [opened, reopened, synchronize, closed]
jobs:
setup:
# this job requires secrets, which cannot be shared with forks
# so run only from the original repository
if: |
(github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize') &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'gitlocalize-app[bot]'
uses: Qiskit/gh-actions/.github/workflows/code-engine-preview.yml@main
with:
code_engine_project: platypus-preview
docker_image_name: platypus
clone_textbook_repo: true
secrets:
ibmcloud_account: ${{ secrets.IBMCLOUD_ACCOUNT }}
ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
ibmid_client_id: ${{ secrets.STAGING_IBMID_CLIENT_ID }}
ibmid_client_secret: ${{ secrets.STAGING_IBMID_CLIENT_SECRET }}
mongodb_uri: ${{ secrets.STAGING_MONGODB_URI }}
textbook_repo_clone_key: ${{ secrets.TEXTBOOK_REPO_CLONE_KEY }}
teardown:
# this job requires secrets, which cannot be shared with forks
# so run only from the original repository
if: |
github.event.action == 'closed' &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'gitlocalize-app[bot]'
uses: Qiskit/gh-actions/.github/workflows/code-engine-cleanup.yml@main
with:
code_engine_project: platypus-preview
docker_image_name: platypus
secrets:
ibmcloud_account: ${{ secrets.IBMCLOUD_ACCOUNT }}
ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}