From 1e27e7a70e505a1cfa18a0cd5fcc13e4b7e02f89 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 25 Feb 2025 10:15:38 +0900 Subject: [PATCH 1/3] 250225 commit --- azure-vote-all-in-one-redis.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-vote-all-in-one-redis.yaml b/azure-vote-all-in-one-redis.yaml index 75b6822824..e6ad933f12 100644 --- a/azure-vote-all-in-one-redis.yaml +++ b/azure-vote-all-in-one-redis.yaml @@ -57,7 +57,7 @@ spec: "kubernetes.io/os": linux containers: - name: azure-vote-front - image: mcr.microsoft.com/azuredocs/azure-vote-front:v1 + image: serahpacr.azurecr.io/azuredocs/azure-vote-front:v1 ports: - containerPort: 80 resources: From cad135dff0232e0fa7272cdd7f48b85f4b62e2e4 Mon Sep 17 00:00:00 2001 From: serahp Date: Tue, 25 Feb 2025 10:29:39 +0900 Subject: [PATCH 2/3] 250225 commit 2 --- .github/workflows/main.yml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..c1afb9a644 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +name: build_deploy_aks +on: + push: + paths: + - "azure-vote/**" +jobs: + build: + runs-on: ubuntu-latest + 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: azure-vote-front + folder: azure-vote + branch: master + tag: ${{ github.sha }} + - name: Azure login + id: login + uses: azure/login@v1.4.3 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Set AKS context + id: set-context + uses: azure/aks-set-context@v3 + with: + resource-group: '${{ secrets.resource_group }}' + cluster-name: '${{ secrets.cluster_name }}' + - name: Setup kubectl + id: install-kubectl + uses: azure/setup-kubectl@v3 + - name: Deploy to AKS + id: deploy-aks + uses: Azure/k8s-deploy@v4 + with: + namespace: 'default' + manifests: | + azure-vote-all-in-one-redis.yaml + images: '${{ secrets.registry }}.azurecr.io/${{ secrets.repository }}/azure-vote-front:${{ github.sha }}' + pull-images: false \ No newline at end of file From 50ba7f3280363bc1a3044779726b06d86d27af1c Mon Sep 17 00:00:00 2001 From: sejinserahpark Date: Tue, 25 Feb 2025 11:02:34 +0900 Subject: [PATCH 3/3] Update config_file.cfg --- azure-vote/azure-vote/config_file.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-vote/azure-vote/config_file.cfg b/azure-vote/azure-vote/config_file.cfg index e32731fadf..6bddf65edc 100644 --- a/azure-vote/azure-vote/config_file.cfg +++ b/azure-vote/azure-vote/config_file.cfg @@ -1,5 +1,5 @@ # UI Configurations TITLE = 'Azure Voting App' -VOTE1VALUE = 'Cats' +VOTE1VALUE = 'Fish' VOTE2VALUE = 'Dogs' SHOWHOST = 'false' \ No newline at end of file