mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
changing the way to use simple scripts
This commit is contained in:
parent
8734f120d6
commit
d5d3658b6e
1 changed files with 10 additions and 12 deletions
22
.github/workflows/maven-build.yml
vendored
22
.github/workflows/maven-build.yml
vendored
|
@ -42,13 +42,13 @@ jobs:
|
|||
|
||||
|
||||
|
||||
- name: Login to ACR
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
# - name: Login to ACR
|
||||
# uses: docker/login-action@v3
|
||||
# with:
|
||||
|
||||
registry: ${{ vars.ACR_NAME }}.azurecr.io
|
||||
username: ${{ secrets.AZURE_CLIENT_ID }}
|
||||
password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||
# registry: ${{ vars.ACR_NAME }}.azurecr.io
|
||||
# username: ${{ secrets.AZURE_CLIENT_ID }}
|
||||
# password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||
|
||||
|
||||
- uses: azure/login@v2
|
||||
|
@ -57,12 +57,10 @@ jobs:
|
|||
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
|
||||
|
||||
- name: Docker Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
grid-capstone-${{ github.sha }}
|
||||
run: |
|
||||
az acr login --name ${{ vars.ACR_NAME }}
|
||||
docker build -t ${{ ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }} .
|
||||
docker push ${{ ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }}
|
||||
|
||||
|
||||
- name: Getting access to the cluster
|
||||
|
|
Loading…
Reference in a new issue