-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy to prod-slack-altinndevops in prod resource group
- Loading branch information
Showing
9 changed files
with
166 additions
and
90 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
.../assistants-slack-altinndevops-AutoDeployTrigger-b3f5dbde-b8af-4b5f-94e9-d2eb110abe37.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Trigger auto deployment for assistants-slack-altinndevops | ||
|
||
# When this action will be executed | ||
on: | ||
# Automatically trigger it when detected changes in repo | ||
push: | ||
branches: | ||
[ main ] | ||
paths: | ||
- '**' | ||
- '.github/workflows/assistants-slack-altinndevops-AutoDeployTrigger-b3f5dbde-b8af-4b5f-94e9-d2eb110abe37.yml' | ||
|
||
# Allow manual trigger | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
environment: prod-slack-altinndevops | ||
|
||
steps: | ||
- name: Checkout to the branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Azure Login | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.ASSISTANTSSLACKALTINNDEVOPS_AZURE_CREDENTIALS }} | ||
|
||
- name: Build and push container image to registry | ||
uses: azure/container-apps-deploy-action@v2 | ||
with: | ||
appSourcePath: ${{ github.workspace }} | ||
registryUrl: altinnaicontainers.azurecr.io | ||
registryUsername: ${{ secrets.ASSISTANTSSLACKALTINNDEVOPS_REGISTRY_USERNAME }} | ||
registryPassword: ${{ secrets.ASSISTANTSSLACKALTINNDEVOPS_REGISTRY_PASSWORD }} | ||
containerAppName: assistants-slack-altinndevops | ||
resourceGroup: assistants-prod-norwayeast | ||
imageToBuild: altinnaicontainers.azurecr.io/assistants-slack-altinndevops:${{ github.sha }} | ||
buildArguments: | | ||
"VITE_SLACK_APP_SUPABASE_API_URL=${{ vars.SLACK_APP_SUPABASE_API_URL }}" | ||
"VITE_SLACK_APP_SUPABASE_ANON_KEY=${{secrets.SLACK_APP_SUPABASE_ANON_KEY}}" | ||
environmentVariables: > | ||
"OPENAI_API_KEY=secretref:openai-api-key" | ||
"AZURE_OPENAI_API_KEY=secretref:azure-openai-api-key" | ||
"SLACK_APP_TOKEN=secretref:slack-app-token" | ||
"SLACK_BOT_TOKEN=secretref:slack-bot-token" | ||
"SLACK_BOT_SIGNING_SECRET=secretref:slack-bot-signing-secret" | ||
"TYPESENSE_API_KEY=secretref:typesense-api-key" | ||
"SLACK_APP_SUPABASE_API_URL=${{ vars.SLACK_APP_SUPABASE_API_URL }}" | ||
"SLACK_APP_SUPABASE_ANON_KEY=${{ secrets.SLACK_APP_SUPABASE_ANON_KEY }}" | ||
"USE_AZURE_OPENAI_API=${{ vars.USE_AZURE_OPENAI_API}}" | ||
"OPENAI_API_URL=${{ vars.OPENAI_API_URL }}" | ||
"OPENAI_API_MODEL_NAME=${{ vars.OPENAI_API_MODEL_NAME }}" | ||
"AZURE_OPENAI_API_URL=${{ vars.AZURE_OPENAI_API_URL }}" | ||
"AZURE_OPENAI_DEPLOYMENT=${{ vars.AZURE_OPENAI_DEPLOYMENT }}" | ||
"AZURE_OPENAI_VERSION=${{ vars.AZURE_OPENAI_VERSION }}" | ||
"COLBERT_API_URL=${{ vars.COLBERT_API_URL }}" | ||
"TYPESENSE_API_HOST=${{ vars.TYPESENSE_API_HOST }}" | ||
"TYPESENSE_DOCS_COLLECTION=${{ vars.TYPESENSE_DOCS_COLLECTION }}" | ||
"TYPESENSE_DOCS_SEARCH_PHRASE_COLLECTION=${{ vars.TYPESENSE_DOCS_SEARCH_PHRASE_COLLECTION }}" | ||
"MAX_CONTEXT_DOC_COUNT=${{ vars.MAX_CONTEXT_DOC_COUNT }}" | ||
"MAX_CONTEXT_LENGTH=${{ vars.MAX_CONTEXT_LENGTH }}" | ||
"MAX_SOURCE_LENGTH=${{ vars.MAX_SOURCE_LENGTH }}" | ||
"DEBUG_SLACK=${{ vars.DEBUG_SLACK }}" | ||
"DEBUG_INSTRUCTOR=${{ vars.DEBUG_INSTRUCTOR }}" | ||
"LOG_LEVEL=${{ vars.LOG_LEVEL }}" | ||
43 changes: 0 additions & 43 deletions
43
...ub/workflows/digdir-assistants-AutoDeployTrigger-bbf1dda7-6862-4a86-94e1-9466cec169a6.yml
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
...rkflows/digdir-assistants-test-AutoDeployTrigger-219d7bf4-be08-4d50-8074-9c2bc8dfba13.yml
This file was deleted.
Oops, something went wrong.
This file contains 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
72 changes: 72 additions & 0 deletions
72
...ub/workflows/test-slack-digdir-AutoDeployTrigger-219d7bf4-be08-4d50-8074-9c2bc8dfba13.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: test-slack-digdir - Auto deploy | ||
|
||
# When this action will be executed | ||
on: | ||
# Automatically trigger it when detected changes in repo | ||
push: | ||
branches: | ||
[ main ] | ||
paths: | ||
- '**' | ||
- '.github/workflows/test-slack-digdir-AutoDeployTrigger-219d7bf4-be08-4d50-8074-9c2bc8dfba13.yml' | ||
|
||
# Allow manual trigger | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
environment: test-slack-digdir | ||
|
||
steps: | ||
- name: Checkout to the branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Azure Login | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.DIGDIRASSISTANTSTEST_AZURE_CREDENTIALS }} | ||
|
||
- name: Build and push container image to registry | ||
uses: azure/container-apps-deploy-action@v2 | ||
with: | ||
appSourcePath: ${{ github.workspace }} | ||
registryUrl: altinnaicontainers.azurecr.io | ||
registryUsername: ${{ secrets.DIGDIRASSISTANTSTEST_REGISTRY_USERNAME }} | ||
registryPassword: ${{ secrets.DIGDIRASSISTANTSTEST_REGISTRY_PASSWORD }} | ||
containerAppName: digdir-assistants-test | ||
resourceGroup: altinn-ai-assistant | ||
imageToBuild: altinnaicontainers.azurecr.io/digdir-assistants:${{ github.sha }} | ||
buildArguments: | | ||
"VITE_SLACK_APP_SUPABASE_API_URL=${{ vars.SLACK_APP_SUPABASE_API_URL }}" | ||
"VITE_SLACK_APP_SUPABASE_ANON_KEY=${{secrets.SLACK_APP_SUPABASE_ANON_KEY}}" | ||
environmentVariables: > | ||
"OPENAI_API_KEY=secretref:openai-api-key" | ||
"AZURE_OPENAI_API_KEY=secretref:azure-openai-api-key" | ||
"SLACK_APP_TOKEN=secretref:slack-app-token" | ||
"SLACK_BOT_TOKEN=secretref:slack-bot-token" | ||
"SLACK_BOT_SIGNING_SECRET=secretref:slack-bot-signing-secret" | ||
"TYPESENSE_API_KEY=secretref:typesense-api-key" | ||
"SLACK_APP_SUPABASE_API_URL=${{ vars.SLACK_APP_SUPABASE_API_URL }}" | ||
"SLACK_APP_SUPABASE_ANON_KEY=${{ secrets.SLACK_APP_SUPABASE_ANON_KEY }}" | ||
"USE_AZURE_OPENAI_API=${{ vars.USE_AZURE_OPENAI_API}}" | ||
"OPENAI_API_URL=${{ vars.OPENAI_API_URL }}" | ||
"OPENAI_API_MODEL_NAME=${{ vars.OPENAI_API_MODEL_NAME }}" | ||
"AZURE_OPENAI_API_URL=${{ vars.AZURE_OPENAI_API_URL }}" | ||
"AZURE_OPENAI_DEPLOYMENT=${{ vars.AZURE_OPENAI_DEPLOYMENT }}" | ||
"AZURE_OPENAI_VERSION=${{ vars.AZURE_OPENAI_VERSION }}" | ||
"COLBERT_API_URL=${{ vars.COLBERT_API_URL }}" | ||
"TYPESENSE_API_HOST=${{ vars.TYPESENSE_API_HOST }}" | ||
"TYPESENSE_DOCS_COLLECTION=${{ vars.TYPESENSE_DOCS_COLLECTION }}" | ||
"TYPESENSE_DOCS_SEARCH_PHRASE_COLLECTION=${{ vars.TYPESENSE_DOCS_SEARCH_PHRASE_COLLECTION }}" | ||
"MAX_CONTEXT_DOC_COUNT=${{ vars.MAX_CONTEXT_DOC_COUNT }}" | ||
"MAX_CONTEXT_LENGTH=${{ vars.MAX_CONTEXT_LENGTH }}" | ||
"MAX_SOURCE_LENGTH=${{ vars.MAX_SOURCE_LENGTH }}" | ||
"DEBUG_SLACK=${{ vars.DEBUG_SLACK }}" | ||
"DEBUG_INSTRUCTOR=${{ vars.DEBUG_INSTRUCTOR }}" | ||
"LOG_LEVEL=${{ vars.LOG_LEVEL }}" | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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