-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.67 KB
/
Copy pathacr-deploy.yml
File metadata and controls
40 lines (37 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on: [push]
name: Linux_Container_Workflow
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login via Azure CLI'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_ACR_SP_CREDENTIALS }}
#client-id: ${{ secrets.AZURE_ACR_SP_CLIENT_ID }}
#tenant-id: ${{ secrets.AZURE_ACR_SP_TENANT_ID }}
#subscription-id: ${{ secrets.AZURE_ACR_SP_SUBSCRIPTION_ID }}
- name: 'Login to ACR'
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: 'Build and push web.razor image'
uses: docker/build-push-action@v2
with:
context: ./Src
file: ./Src/Clients/Shopping.Razor/Dockerfile
push: true
tags: ${{ secrets.REGISTRY_LOGIN_SERVER }}/web.razor:${{ github.sha }}
#run: |
# cd ./Src
#docker build -f ./Clients/Shopping.Razor/Dockerfile -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/web.razor:${{ github.sha }} .
#docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/web.razor:${{ github.sha }}
#- name: 'Build and push identityprovider image'
# run: |
# docker build ./Src/Identity/Shopping.IDP -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/identityprovider:${{ github.sha }}
# docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/identityprovider:${{ github.sha }}