Difference between revisions of "Uses: azure/docker-login"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
* https://github.com/Azure/docker-login
 
* https://github.com/Azure/docker-login
  
 +
<pre>
 +
- uses: azure/docker-login@v2
 +
  with:
 +
    login-server: contoso.azurecr.io
 +
    username: ${{ secrets.ACR_USERNAME }}
 +
    password: ${{ secrets.ACR_PASSWORD }}
 +
- run: |
 +
    docker build . -t contoso.azurecr.io/k8sdemo
 +
    docker push contoso.azurecr.io/k8sdemo
 +
</pre>
  
- uses: azure/docker-login@v2
 
  with:
 
    login-server: contoso.azurecr.io
 
    username: ${{ secrets.ACR_USERNAME }}
 
    password: ${{ secrets.ACR_PASSWORD }}
 
- run: |
 
    docker pull contoso.azurecr.io/private/image:latest
 
    docker pull private/image:latest
 
  
 
+
* {{uses:}}
 
+
* {{gha}}
{{gha}}
 

Latest revision as of 11:58, 17 July 2024

 - uses: azure/docker-login@v2
   with:
     login-server: contoso.azurecr.io
     username: ${{ secrets.ACR_USERNAME }}
     password: ${{ secrets.ACR_PASSWORD }}
 - run: |
    docker build . -t contoso.azurecr.io/k8sdemo
    docker push contoso.azurecr.io/k8sdemo


Advertising: