mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25: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
|
# - name: Login to ACR
|
||||||
uses: docker/login-action@v3
|
# uses: docker/login-action@v3
|
||||||
with:
|
# with:
|
||||||
|
|
||||||
registry: ${{ vars.ACR_NAME }}.azurecr.io
|
# registry: ${{ vars.ACR_NAME }}.azurecr.io
|
||||||
username: ${{ secrets.AZURE_CLIENT_ID }}
|
# username: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
# password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||||
|
|
||||||
|
|
||||||
- uses: azure/login@v2
|
- 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 }}"}'
|
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
|
- name: Docker Build and push
|
||||||
uses: docker/build-push-action@v6
|
run: |
|
||||||
with:
|
az acr login --name ${{ vars.ACR_NAME }}
|
||||||
context: .
|
docker build -t ${{ ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }} .
|
||||||
push: true
|
docker push ${{ ACR_NAME }}.azurecr.io/grid-capstone:${{ github.sha }}
|
||||||
tags: |
|
|
||||||
grid-capstone-${{ github.sha }}
|
|
||||||
|
|
||||||
|
|
||||||
- name: Getting access to the cluster
|
- name: Getting access to the cluster
|
||||||
|
|
Loading…
Reference in a new issue