-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 2.38 KB
/
monorepo-microservices-registry.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
name: Azure Push Images to Registry
on:
workflow_dispatch:
env:
CONTAINER_REGISTRY: "devcontainerregistryre02.azurecr.io"
TAG: "ci-1.0.1"
jobs:
build_and_push_to_registry:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v2
- name: Login via Azure CLI
uses: Azure/docker-login@v1
with:
login-server: ${{ env.CONTAINER_REGISTRY }}
username: ${{ SECRETS.REGISTRY_USERNAME }}
password: ${{ SECRETS.REGISTRY_PASSWORD }}
- name: Push Company.Course to Registry
run: |
docker build -f ./Company.Course/Company.Course.Api/Dockerfile -t ${{ env.CONTAINER_REGISTRY }}/company-course:${{ env.TAG }} .
docker push ${{ env.CONTAINER_REGISTRY }}/company-course:${{ env.TAG }}
- name: Push Company.Department to Registry
run: |
docker build -f ./Company.Department/Company.Department.Api/Dockerfile -t ${{ env.CONTAINER_REGISTRY }}/company-department:${{ env.TAG }} .
docker push ${{ env.CONTAINER_REGISTRY }}/company-department:${{ env.TAG }}
- name: Push Company.Employee to Registry
run: |
docker build -f ./Company.Employee/Company.Employee.Api/Dockerfile -t ${{ env.CONTAINER_REGISTRY }}/company-employee:${{ env.TAG }} .
docker push ${{ env.CONTAINER_REGISTRY }}/company-employee:${{ env.TAG }}
- name: Push Company.Notification to Registry
run: |
docker build -f ./Company.Notification/Company.Notification.Api/Dockerfile -t ${{ env.CONTAINER_REGISTRY }}/company-notification:${{ env.TAG }} .
docker push ${{ env.CONTAINER_REGISTRY }}/company-notification:${{ env.TAG }}
- name: Push Microservices.Catalogue to Registry
run: |
docker build -f ./Microservices.Catalogue/Dockerfile -t ${{ env.CONTAINER_REGISTRY }}/microservices-catalogue:${{ env.TAG }} .
docker push ${{ env.CONTAINER_REGISTRY }}/microservices-catalogue:${{ env.TAG }}
- name: Push Microservices.GraphQL to Registry
run: |
docker build -f ./Microservices.GraphQL/Dockerfile -t ${{ env.CONTAINER_REGISTRY }}/microservices-graphql:${{ env.TAG }} .
docker push ${{ env.CONTAINER_REGISTRY }}/microservices-graphql:${{ env.TAG }}