Skip to content

Commit

Permalink
feat: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rockyj committed Jan 9, 2025
1 parent 73061d4 commit 599349d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
workflow_dispatch:

env:
ACR_REGISTRY: haleon.azurecr.cn
ACR_USERNAME: ${{ secrets.ACR_USERNAME }}
ACR_REGISTRY: ${{ secrets.ACR_REGISTRY }}
ACR_PASSWORD: ${{ secrets.ACR_PASSWORD }}
KUBECONFIG_FILE: ${{ secrets.KUBECONFIG }}

Expand All @@ -20,7 +21,7 @@ jobs:
- name: Login to Container Registry
run: |
docker login ${ACR_REGISTRY} \
-u "haleon" \
-u "${ACR_USERNAME}" \
-p "${ACR_PASSWORD}"
- name: Build Docker image
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/microservice_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
workflow_dispatch:

env:
ACR_REGISTRY: haleon.azurecr.cn
ACR_USERNAME: ${{ secrets.ACR_USERNAME }}
ACR_REGISTRY: ${{ secrets.ACR_REGISTRY }}
ACR_PASSWORD: ${{ secrets.ACR_PASSWORD }}
KUBECONFIG_FILE: ${{ secrets.KUBECONFIG }}

Expand All @@ -20,7 +21,7 @@ jobs:
- name: Login to Container Registry
run: |
docker login ${ACR_REGISTRY} \
-u "haleon" \
-u "${ACR_USERNAME}" \
-p "${ACR_PASSWORD}"
- name: Build and push Docker image
Expand Down
3 changes: 2 additions & 1 deletion deploy.yml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ main ]

env:
ACR_USERNAME: ${{ secrets.ACR_USERNAME }}
ACR_REGISTRY: ${{ secrets.ACR_REGISTRY }}
ACR_PASSWORD: ${{ secrets.ACR_PASSWORD }}
KUBECONFIG_FILE: ${{ secrets.KUBECONFIG }}
Expand All @@ -21,7 +22,7 @@ jobs:
- name: Login to Container Registry
run: |
docker login ${ACR_REGISTRY} \
-u "haleon" \
-u "${ACR_USERNAME}" \
-p "${ACR_PASSWORD}"

- name: Build and push Docker image
Expand Down

0 comments on commit 599349d

Please sign in to comment.