Skip to content

Commit

Permalink
use admin
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame authored Nov 11, 2023
1 parent 8945593 commit 67c39f2
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@
uses: docker/login-action@v2
with:
registry: https://akvtraining.azurecr.io/
username: ${{ secrets.AzureAppService_ContainerUsername_a3760a5dac7f4726917f38f215d0db06 }}
password: ${{ secrets.AzureAppService_ContainerPassword_02520bfd6ea841afbf108eca82268bd9 }}
#username: ${{ secrets.AZURE_REGISTRY_USER }}
#password: ${{ secrets.AZURE_REGISTRY_PASSWORD }}
#username: ${{ secrets.AzureAppService_ContainerUsername_a3760a5dac7f4726917f38f215d0db06 }}
#password: ${{ secrets.AzureAppService_ContainerPassword_02520bfd6ea841afbf108eca82268bd9 }}
username: ${{ secrets.AZURE_REGISTRY_ADMIN }}
password: ${{ secrets.AZURE_REGISTRY_ADMIN_PASSWORD }}

- name: Publish to Azure Registry
if: needs.choose-registry.outputs.azureregistry
Expand All @@ -120,4 +120,16 @@
with:
app-name: az-appservice-go-dockerhub
publish-profile: ${{ secrets.APP_GO_DOCKERHUB_PROFILE }}


deplpoy-to-azure-from-azure-regisrty:
if: needs.choose-registry.outputs.dockerhub
needs: [publish-to-registry, choose-registry]
runs-on: ubuntu-latest

steps:
- name: Deploy az-appservice-go-dockerhub

uses: azure/webapps-deploy@v2
with:
app-name: az-appservice-go-azure-registry
publish-profile: ${{ secrets.APP_GO_AZURE_REGISTRY_PROFILE }}

0 comments on commit 67c39f2

Please sign in to comment.