Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 5e0f55c

Browse files
authored
Merge pull request #1587 from dotnet-architecture/migration/net-5
.NET 5.0 migration
2 parents 40faa73 + db10da6 commit 5e0f55c

File tree

1,148 files changed

+12193
-70682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,148 files changed

+12193
-70682
lines changed

.github/workflows/basket-api.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: basket-api
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
paths:
9+
- src/BuildingBlocks/*
10+
- src/Services/Basket/*
11+
- .github/workflows/basket-api.yml
12+
13+
pull_request:
14+
branches:
15+
- dev
16+
env:
17+
SERVICE: basket-api
18+
IMAGE: basket.api
19+
20+
jobs:
21+
22+
BuildContainersForPR_Linux:
23+
runs-on: ubuntu-latest
24+
if: ${{ github.event_name == 'pull_request' }}
25+
steps:
26+
- name: 'Checkout Github Action'
27+
uses: actions/checkout@master
28+
29+
- name: Compose build ${{ env.SERVICE }}
30+
run: sudo -E docker-compose build ${{ env.SERVICE }}
31+
working-directory: ./src
32+
shell: bash
33+
env:
34+
TAG: ${{ env.BRANCH }}
35+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
36+
37+
BuildLinux:
38+
runs-on: ubuntu-latest
39+
if: ${{ github.event_name != 'pull_request' }}
40+
steps:
41+
- name: 'Checkout Github Action'
42+
uses: actions/checkout@master
43+
44+
- name: Enable experimental features for the Docker daemon and CLI
45+
run: |
46+
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
47+
mkdir -p ~/.docker
48+
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
49+
sudo service docker restart
50+
docker version -f '{{.Client.Experimental}}'
51+
docker version -f '{{.Server.Experimental}}'
52+
53+
- name: Login to Container Registry
54+
uses: docker/login-action@v1
55+
with:
56+
registry: ${{ secrets.REGISTRY_HOST }}
57+
username: ${{ secrets.USERNAME }}
58+
password: ${{ secrets.PASSWORD }}
59+
60+
- name: Set branch name as env variable
61+
run: |
62+
currentbranch=$(echo ${GITHUB_REF##*/})
63+
echo "running on $currentbranch"
64+
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
65+
shell: bash
66+
67+
- name: Compose build ${{ env.SERVICE }}
68+
run: sudo -E docker-compose build ${{ env.SERVICE }}
69+
working-directory: ./src
70+
shell: bash
71+
env:
72+
TAG: ${{ env.BRANCH }}
73+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
74+
75+
- name: Compose push ${{ env.SERVICE }}
76+
run: sudo -E docker-compose push ${{ env.SERVICE }}
77+
working-directory: ./src
78+
shell: bash
79+
env:
80+
TAG: ${{ env.BRANCH }}
81+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
82+
83+
- name: Create multiarch manifest
84+
run: |
85+
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
86+
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
87+
shell: bash

.github/workflows/catalog-api.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: catalog-api
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
paths:
9+
- src/BuildingBlocks/*
10+
- src/Services/Catalog/*
11+
- .github/workflows/catalog-api.yml
12+
13+
pull_request:
14+
branches:
15+
- dev
16+
env:
17+
SERVICE: catalog-api
18+
IMAGE: catalog.api
19+
20+
jobs:
21+
22+
BuildContainersForPR_Linux:
23+
runs-on: ubuntu-latest
24+
if: ${{ github.event_name == 'pull_request' }}
25+
steps:
26+
- name: 'Checkout Github Action'
27+
uses: actions/checkout@master
28+
29+
- name: Compose build ${{ env.SERVICE }}
30+
run: sudo -E docker-compose build ${{ env.SERVICE }}
31+
working-directory: ./src
32+
shell: bash
33+
env:
34+
TAG: ${{ env.BRANCH }}
35+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
36+
37+
BuildLinux:
38+
runs-on: ubuntu-latest
39+
if: ${{ github.event_name != 'pull_request' }}
40+
steps:
41+
- name: 'Checkout Github Action'
42+
uses: actions/checkout@master
43+
44+
- name: Enable experimental features for the Docker daemon and CLI
45+
run: |
46+
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
47+
mkdir -p ~/.docker
48+
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
49+
sudo service docker restart
50+
docker version -f '{{.Client.Experimental}}'
51+
docker version -f '{{.Server.Experimental}}'
52+
53+
- name: Login to Container Registry
54+
uses: docker/login-action@v1
55+
with:
56+
registry: ${{ secrets.REGISTRY_HOST }}
57+
username: ${{ secrets.USERNAME }}
58+
password: ${{ secrets.PASSWORD }}
59+
60+
- name: Set branch name as env variable
61+
run: |
62+
currentbranch=$(echo ${GITHUB_REF##*/})
63+
echo "running on $currentbranch"
64+
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
65+
shell: bash
66+
67+
- name: Compose build ${{ env.SERVICE }}
68+
run: sudo -E docker-compose build ${{ env.SERVICE }}
69+
working-directory: ./src
70+
shell: bash
71+
env:
72+
TAG: ${{ env.BRANCH }}
73+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
74+
75+
- name: Compose push ${{ env.SERVICE }}
76+
run: sudo -E docker-compose push ${{ env.SERVICE }}
77+
working-directory: ./src
78+
shell: bash
79+
env:
80+
TAG: ${{ env.BRANCH }}
81+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
82+
83+
- name: Create multiarch manifest
84+
run: |
85+
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
86+
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
87+
shell: bash

.github/workflows/identity-api.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: identity-api
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
paths:
9+
- src/BuildingBlocks/*
10+
- src/Services/Identity/*
11+
- .github/workflows/identity-api.yml
12+
13+
pull_request:
14+
branches:
15+
- dev
16+
env:
17+
SERVICE: identity-api
18+
IMAGE: identity.api
19+
20+
jobs:
21+
22+
BuildContainersForPR_Linux:
23+
runs-on: ubuntu-latest
24+
if: ${{ github.event_name == 'pull_request' }}
25+
steps:
26+
- name: 'Checkout Github Action'
27+
uses: actions/checkout@master
28+
29+
- name: Compose build ${{ env.SERVICE }}
30+
run: sudo -E docker-compose build ${{ env.SERVICE }}
31+
working-directory: ./src
32+
shell: bash
33+
env:
34+
TAG: ${{ env.BRANCH }}
35+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
36+
37+
BuildLinux:
38+
runs-on: ubuntu-latest
39+
if: ${{ github.event_name != 'pull_request' }}
40+
steps:
41+
- name: 'Checkout Github Action'
42+
uses: actions/checkout@master
43+
44+
- name: Enable experimental features for the Docker daemon and CLI
45+
run: |
46+
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
47+
mkdir -p ~/.docker
48+
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
49+
sudo service docker restart
50+
docker version -f '{{.Client.Experimental}}'
51+
docker version -f '{{.Server.Experimental}}'
52+
53+
- name: Login to Container Registry
54+
uses: docker/login-action@v1
55+
with:
56+
registry: ${{ secrets.REGISTRY_HOST }}
57+
username: ${{ secrets.USERNAME }}
58+
password: ${{ secrets.PASSWORD }}
59+
60+
- name: Set branch name as env variable
61+
run: |
62+
currentbranch=$(echo ${GITHUB_REF##*/})
63+
echo "running on $currentbranch"
64+
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
65+
shell: bash
66+
67+
- name: Compose build ${{ env.SERVICE }}
68+
run: sudo -E docker-compose build ${{ env.SERVICE }}
69+
working-directory: ./src
70+
shell: bash
71+
env:
72+
TAG: ${{ env.BRANCH }}
73+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
74+
75+
- name: Compose push ${{ env.SERVICE }}
76+
run: sudo -E docker-compose push ${{ env.SERVICE }}
77+
working-directory: ./src
78+
shell: bash
79+
env:
80+
TAG: ${{ env.BRANCH }}
81+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
82+
83+
- name: Create multiarch manifest
84+
run: |
85+
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
86+
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
87+
shell: bash
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: mobileshoppingagg
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
paths:
9+
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/*
10+
- .github/workflows/mobileshoppingagg.yml
11+
12+
pull_request:
13+
branches:
14+
- dev
15+
env:
16+
SERVICE: mobileshoppingagg
17+
IMAGE: mobileshoppingagg
18+
19+
jobs:
20+
21+
BuildContainersForPR_Linux:
22+
runs-on: ubuntu-latest
23+
if: ${{ github.event_name == 'pull_request' }}
24+
steps:
25+
- name: 'Checkout Github Action'
26+
uses: actions/checkout@master
27+
28+
- name: Compose build ${{ env.SERVICE }}
29+
run: sudo -E docker-compose build ${{ env.SERVICE }}
30+
working-directory: ./src
31+
shell: bash
32+
env:
33+
TAG: ${{ env.BRANCH }}
34+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
35+
36+
BuildLinux:
37+
runs-on: ubuntu-latest
38+
if: ${{ github.event_name != 'pull_request' }}
39+
steps:
40+
- name: 'Checkout Github Action'
41+
uses: actions/checkout@master
42+
43+
- name: Enable experimental features for the Docker daemon and CLI
44+
run: |
45+
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
46+
mkdir -p ~/.docker
47+
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
48+
sudo service docker restart
49+
docker version -f '{{.Client.Experimental}}'
50+
docker version -f '{{.Server.Experimental}}'
51+
52+
- name: Login to Container Registry
53+
uses: docker/login-action@v1
54+
with:
55+
registry: ${{ secrets.REGISTRY_HOST }}
56+
username: ${{ secrets.USERNAME }}
57+
password: ${{ secrets.PASSWORD }}
58+
59+
- name: Set branch name as env variable
60+
run: |
61+
currentbranch=$(echo ${GITHUB_REF##*/})
62+
echo "running on $currentbranch"
63+
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
64+
shell: bash
65+
66+
- name: Compose build ${{ env.SERVICE }}
67+
run: sudo -E docker-compose build ${{ env.SERVICE }}
68+
working-directory: ./src
69+
shell: bash
70+
env:
71+
TAG: ${{ env.BRANCH }}
72+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
73+
74+
- name: Compose push ${{ env.SERVICE }}
75+
run: sudo -E docker-compose push ${{ env.SERVICE }}
76+
working-directory: ./src
77+
shell: bash
78+
env:
79+
TAG: ${{ env.BRANCH }}
80+
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
81+
82+
- name: Create multiarch manifest
83+
run: |
84+
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
85+
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
86+
shell: bash

0 commit comments

Comments
 (0)