Skip to content

Commit

Permalink
Added Secrets to Github actions yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhv committed Nov 27, 2023
1 parent 24a169a commit cb40e9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/azure-static-web-apps-icy-plant-0291c0a0f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
environment:
name: dev
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
Expand All @@ -34,6 +36,21 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
###### End of Repository/Build Configurations ######
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
AZURE_STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}
AZURE_STORAGE_URL: ${{ secrets.AZURE_STORAGE_URL }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_COSMOSDB_PG_URL: ${{ secrets.AZURE_COSMOSDB_PG_URL }}
AZURE_COSMOSDB_PG_USER: ${{ secrets.AZURE_COSMOSDB_PG_USER }}
AZURE_COSMOSDB_PG_PASSWORD: ${{ secrets.AZURE_COSMOSDB_PG_PASSWORD }}
AZURE_COSMOSDB_PG_DBNAME: ${{ secrets.AZURE_COSMOSDB_PG_DBNAME }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
GITHUB_ID: ${{ secrets.GITHUB_ID }}
GITHUB_SECRET: ${{ secrets.GITHUB_SECRET }}

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down
2 changes: 1 addition & 1 deletion lib/containerCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type FilesList = File[];
to list all files in a specified container. A FilesList is returned. */
export async function getFilesList(containerName: string): Promise<FilesList> {
const containerClient = await new ContainerClient(
"https://gptlmspractice.blob.core.windows.net" + `/${containerName}`,
process.env.AZURE_STORAGE_URL + `/${containerName}`,
new DefaultAzureCredential()
);

Expand Down

0 comments on commit cb40e9b

Please sign in to comment.