Repository navigation
Update embed actions to work with postgres (#892) #129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Embed docsite | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| trigger-embed-staging: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Embed docs into staging | |
| env: | |
| APOLLO_STAGING_API_KEY: ${{ secrets.APOLLO_STAGING_API_KEY }} | |
| run: | | |
| curl -f -X POST https://apollo.staging.openfn.org/services/embed_docsite \ | |
| -H "Content-Type: application/json" \ | |
| -d "{ | |
| \"target\": \"postgres\", | |
| \"api_key\": \"$APOLLO_STAGING_API_KEY\" | |
| }" | |
| trigger-embed-prod: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Embed docs into prod | |
| env: | |
| APOLLO_PROD_API_KEY: ${{ secrets.APOLLO_PROD_API_KEY }} | |
| run: | | |
| curl -f -X POST https://apollo.openfn.org/services/embed_docsite \ | |
| -H "Content-Type: application/json" \ | |
| -d "{ | |
| \"target\": \"postgres\", | |
| \"api_key\": \"$APOLLO_PROD_API_KEY\" | |
| }" |