-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from n-y-kim/main
Update frontend & workflow & manifest after dev test
- Loading branch information
Showing
9 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,26 +10,26 @@ jobs: | |
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: ACR build | ||
id: build-push-acr | ||
uses: azure/acr-build@v1 | ||
with: | ||
service_principal: ${{ secrets.SERVICE_PRINCIPAL }} | ||
service_principal_password: ${{ secrets.SERVICE_PRINCIPAL_PASSWORD }} | ||
tenant: ${{ secrets.TENANT }} | ||
registry: ${{ secrets.REGISTRY }} | ||
repository: ${{ secrets.REPOSITORY }} | ||
image: chatbot-app | ||
folder: app | ||
branch: main | ||
tag: ${{ github.sha }} | ||
path: repo | ||
|
||
- name: Move app directory | ||
run: mv repo/app . && mv repo/manifest . && rm -rf repo | ||
|
||
- name: Set up .env | ||
run: echo "${{ secrets.ENV_SECRET }}" > app/.env | ||
|
||
- name: Azure login | ||
id: login | ||
uses: azure/[email protected] | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
- name: Build and push Docker image to ACR | ||
run: | | ||
docker build -t ${{ secrets.REGISTRY }}.azurecr.io/${{ secrets.REPOSITORY }}/chatbot-app:${{ github.sha }} app | ||
docker login ${{ secrets.REGISTRY }}.azurecr.io -u ${{ secrets.SERVICE_PRINCIPAL }} -p ${{ secrets.SERVICE_PRINCIPAL_PASSWORD }} | ||
docker push ${{ secrets.REGISTRY }}.azurecr.io/${{ secrets.REPOSITORY }}/chatbot-app:${{ github.sha }} | ||
- name: Set up kubelogin | ||
uses: azure/use-kubelogin@v1 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Set environment variables | ||
source .env | ||
|
||
# Activate virtual environment | ||
# source venv/bin/activate | ||
|
||
|
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