Skip to content

Commit

Permalink
tag docker image for azure registry
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame authored Nov 11, 2023
1 parent 8bdfa98 commit caec532
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,21 @@
docker push ${{ secrets.DOCKER_USERNAME }}/az-appservice-go
- name: Log in to Azure registry
if: needs.choose-registry.outputs.azureregistry
if: ${{ needs.choose-registry.outputs.azureregistry == 'true' }}
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_ADMIN }}
password: ${{ secrets.AZURE_REGISTRY_ADMIN_PASSWORD }}

- name: Publish to Azure Registry
if: needs.choose-registry.outputs.azureregistry
run: docker push akvtraining.azurecr.io/az-appservice-go
if: ${{ needs.choose-registry.outputs.azureregistry == 'true' }}
run: |
docker tag az-appservice-go akvtraining.azurecr.io/az-appservice-go
docker push akvtraining.azurecr.io/az-appservice-go
deplpoy-to-azure-from-dockerhub:
if: needs.choose-registry.outputs.dockerhub
if: ${{ needs.choose-registry.outputs.dockerhub == 'true' }}
needs: [publish-to-registry, choose-registry]
runs-on: ubuntu-latest

Expand All @@ -122,7 +122,7 @@
publish-profile: ${{ secrets.APP_GO_DOCKERHUB_PROFILE }}

deplpoy-to-azure-from-azure-regisrty:
if: needs.choose-registry.outputs.dockerhub
if: ${{ needs.choose-registry.outputs.azureregistry == 'true' }}
needs: [publish-to-registry, choose-registry]
runs-on: ubuntu-latest

Expand Down

0 comments on commit caec532

Please sign in to comment.