Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from the original repo #1

Merged
merged 254 commits into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
94b1a0b
Fix ordering test settings
dsrodenas Dec 15, 2020
f26e27b
catch error with interceptor
Dec 15, 2020
d8e64ab
interceptor in mobile bff
Dec 15, 2020
4a71f48
top level statements
Dec 15, 2020
687dc56
Prepare to update ng version
Dec 15, 2020
6518089
Update TS version
Dec 15, 2020
a46272c
Update peerDependencies
Dec 15, 2020
39d4396
Renew packageLock
Dec 15, 2020
634d420
Upgrade to ng version 9
Dec 15, 2020
90d70f8
Add record types for DTOs. Update ordering DockerFiles to dotnet 5.0 …
dsrodenas Dec 15, 2020
279dc6f
Fixed call error when filter item is applied
Dec 15, 2020
7d8c21f
Upgrade node version 10.3 to docker
Dec 15, 2020
4fcb70c
fix namespace top level statement
Dec 16, 2020
19a5dde
net5
Dec 16, 2020
1fe0121
record types
Dec 16, 2020
e66e611
customer basket items setteable
Dec 16, 2020
86e563f
Merge pull request #1547 from borjasanes/feature/basket-api-migration
mvelosop Dec 16, 2020
998e66a
Fix MarketingUrl Port on AppSettings
Dec 16, 2020
6b47be9
Update nuget packages for Ordering service.
dsrodenas Dec 16, 2020
1e212aa
Merge branch 'migration/net-5' into feature/ordering-api-migration
dsrodenas Dec 16, 2020
ab30596
Fix CampaignDetailFunctionEnabled required when conf isReady
Dec 16, 2020
d94c866
Delete Package lock to update ng version
Dec 16, 2020
b29422a
new PackageLock to update to ng version10
Dec 16, 2020
70b453a
new PackageLock to update to ng version10
Dec 16, 2020
2d59b7c
Change Grpc client creation from a per request approach to a client f…
dsrodenas Dec 16, 2020
792629a
migrate catalog api
Dec 16, 2020
36a2446
Updated to ng version10
Dec 16, 2020
f1eb453
Upgrade to 12 node version
Dec 17, 2020
4e948d0
grpc improvements
Dec 17, 2020
35b30a1
Top-level statements. Change ordering net standard projects to dotnet 5.
dsrodenas Dec 17, 2020
02bc1b9
Update logging nuge package dependency.
dsrodenas Dec 17, 2020
3ce1b46
Merge pull request #1548 from borjasanes/feature/identity-api-migration
mvelosop Dec 17, 2020
2dab60f
Merge pull request #1549 from cdemiguel/feature/SPA-to-angular10
mvelosop Dec 17, 2020
151c159
update net 5
Dec 17, 2020
85e901d
Merge pull request #2 from borjasanes/feature/ordering-api-migration
borjasanes Dec 18, 2020
5fa317f
net 5 webapps
Dec 18, 2020
c469553
Merge remote-tracking branch 'origin/feature/net-5' into feature/weba…
Dec 18, 2020
19460bb
update nuget packages
Dec 18, 2020
3e23e27
Migrate Payment.API to dotnet 5
dsrodenas Dec 18, 2020
6f8eabd
Merge branch 'feature/net-5' into feature/payment-api-migration
dsrodenas Dec 18, 2020
f25537e
dockerfiles and update nugets
Dec 18, 2020
2ea2b0a
fix docker file image
Dec 18, 2020
e619a39
update nugets
Dec 21, 2020
aef73d7
fix functional tests
Dec 21, 2020
332bd4c
Merge pull request #1551 from borjasanes/feature/catalog-api-migration
mvelosop Dec 21, 2020
62d4b2b
merge remote branch into fork
Dec 21, 2020
bbef451
Merge from migration/net-5
dsrodenas Dec 21, 2020
13e9a6b
Merge pull request #1550 from borjasanes/feature/ordering-api-migration
mvelosop Dec 21, 2020
65079a1
Merge from migration/net-5
dsrodenas Dec 21, 2020
6ee0837
Merge pull request #1553 from borjasanes/feature/payment-api-migration
mvelosop Dec 21, 2020
cc28b8c
remove marketing and locations
Dec 21, 2020
6fecd22
update mvc references
Dec 21, 2020
55a177f
update dockerfiles without location & api csprojs
Dec 21, 2020
f53e2c0
remove campaings from SPA
Dec 21, 2020
aa32e56
remove helm deploy marketing locations and builds
Dec 21, 2020
98552b7
delete marketing and locations references
Dec 21, 2020
d077926
WIP
Dec 22, 2020
2aee715
apigws workflow
Dec 22, 2020
003e6b4
paths filter
Dec 22, 2020
de9706c
fix workflow filter path
Dec 22, 2020
db15e26
event name
Dec 22, 2020
99857aa
copy with ps
Dec 22, 2020
093fbfc
test basket api workflow
Dec 22, 2020
cf03967
remove uses
Dec 22, 2020
f1803c6
fix path filter
Dec 22, 2020
1980677
add test branch
Dec 22, 2020
c26c6d9
test registry
Dec 22, 2020
257ed5c
Merge pull request #1556 from borjasanes/feature/remove-marketing-and…
mvelosop Dec 22, 2020
2233e18
test login with cmd
Dec 22, 2020
a6e4525
test cmd
Dec 22, 2020
19d5853
test docker login
Dec 22, 2020
7d6dea7
test echo
Dec 22, 2020
4dc3473
echo username
Dec 22, 2020
585c129
test login
Dec 22, 2020
29f6eca
revert login
Dec 22, 2020
6f399e3
Merge branch 'feature/net-5' into feature/webapps-net5-migration
Dec 22, 2020
5aa5fda
test login registry endpoint hub.docker.com
dsrodenas Dec 22, 2020
7c2a759
Test login without registry variable
dsrodenas Dec 22, 2020
99ae989
Test login registry empty
dsrodenas Dec 22, 2020
bc16e9a
Fix varible usage in bash
dsrodenas Dec 22, 2020
4db411d
upgrade nuget packages
Dec 22, 2020
b5ce758
Fix docker-compose build args
dsrodenas Dec 22, 2020
893fd4e
Fix docker-compose push args order
dsrodenas Dec 22, 2020
d8657c4
Add checkout
dsrodenas Dec 22, 2020
ff728ec
consolidate packages
Dec 22, 2020
5db1fb6
Fix variables
dsrodenas Dec 22, 2020
88a4cb5
Add login before build
dsrodenas Dec 22, 2020
6241b07
Fix indentation.
dsrodenas Dec 22, 2020
78bf5ee
Linux version
dsrodenas Dec 22, 2020
1857cc1
fix Breaking change net 5 missing method
Dec 23, 2020
e412966
Add docker-machine env eval
dsrodenas Dec 23, 2020
6fc6048
integration events updated to record types
Dec 23, 2020
71eda6a
remove old grpc caller
Dec 23, 2020
18fd089
Docker-machine env dev
dsrodenas Dec 23, 2020
2331f0c
sudo
dsrodenas Dec 23, 2020
39df598
Remove repeated step.
dsrodenas Dec 23, 2020
811874b
Swamy/remove unused using and refactor the code (#1555)
vishipayyallore Dec 23, 2020
475e07b
Get git branch name
dsrodenas Dec 23, 2020
2d6e17f
Fix get branch step
dsrodenas Dec 23, 2020
15ec491
Uncomment steps
dsrodenas Dec 23, 2020
256e103
add registry
dsrodenas Dec 23, 2020
1687a73
Fix login
dsrodenas Dec 23, 2020
8c7ff74
fix cookie policy
Dec 23, 2020
278b3d1
update nuget in catalog unit tests
Dec 23, 2020
471f3ea
TAG REGISTRY
dsrodenas Dec 23, 2020
c3d91dd
Fixed Issue #1410 (#1560)
InstanceFactory Dec 23, 2020
a208125
remove mobile project
Dec 23, 2020
a020be9
Update env variables.
dsrodenas Dec 23, 2020
075160f
export variable
dsrodenas Dec 23, 2020
1e8b8db
Test variable asignation
dsrodenas Dec 23, 2020
e2734c4
Fix export commnad
dsrodenas Dec 23, 2020
efafcfe
Fix exporting variables when sudo is used
dsrodenas Dec 23, 2020
85a9216
Remove comments
dsrodenas Dec 23, 2020
7e09f82
Enable push image
dsrodenas Dec 23, 2020
d5a3747
Fix docker-file path for push step.
dsrodenas Dec 23, 2020
e437d94
Add TAG variable to push step.
dsrodenas Dec 23, 2020
669accc
Update registry path
dsrodenas Dec 23, 2020
473c4a5
Change docker login step.
dsrodenas Dec 23, 2020
c970512
remove load test references
Dec 23, 2020
c9052e9
Try sudo docker login in push step.
dsrodenas Dec 23, 2020
2bdd108
Update registry value.
dsrodenas Dec 23, 2020
650f712
Change login method
dsrodenas Dec 23, 2020
c805c7e
Refactor yaml
dsrodenas Dec 23, 2020
3434459
Merge pull request #1559 from borjasanes/feature/webapps-net5-migration
mvelosop Dec 23, 2020
a60152c
Merge pull request #1562 from borjasanes/feature/delete-load-test-ref…
mvelosop Dec 23, 2020
02929d8
Remove debug traces
dsrodenas Dec 23, 2020
c500677
Merge pull request #1561 from borjasanes/feature/remove-xamarin-project
mvelosop Dec 23, 2020
a649bbb
Merge branch 'feature/net-5' into feature/github-actions
Dec 24, 2020
b9160d0
test docker hub host
Dec 24, 2020
856fc1d
modify registry host url
Dec 24, 2020
f089a74
host url
Dec 24, 2020
34483d3
test docker io
Dec 24, 2020
dfac8cf
build on pr
Dec 24, 2020
528b627
test windows build
Dec 24, 2020
b49d460
test login windows
Dec 24, 2020
bd4b305
test branch name windows
Dec 24, 2020
bd6d0a3
test windows
Dec 24, 2020
cdab9fd
test replace branch name pwsh
Dec 24, 2020
fd28ac8
test
Dec 24, 2020
7d53c2e
replace feature
Dec 24, 2020
8606921
working dir and build order cmd
Dec 24, 2020
8abe05d
work dir path
Dec 24, 2020
9f84e5a
work dir
Dec 24, 2020
c4a304b
checkout windows
Dec 24, 2020
220bc58
test multiarch step
Dec 24, 2020
80f4736
test docker config env
Dec 24, 2020
8dea71a
multiarch
Dec 24, 2020
884748f
test WIP
Dec 24, 2020
ac51d01
WIP
Dec 24, 2020
9d1a7b5
test
Dec 24, 2020
ef2d9f9
test sudo
Dec 24, 2020
64d4365
test docker dir
Dec 24, 2020
f42e729
test
Dec 24, 2020
b2149b5
WIP
Dec 24, 2020
495dd8c
test
Dec 24, 2020
0a9a9e6
test
Dec 24, 2020
6970eeb
test
Dec 24, 2020
6bbaa01
test
Dec 24, 2020
c8b53ad
test
Dec 24, 2020
4663b41
test
Dec 24, 2020
259f9ec
test
Dec 24, 2020
d8c5d07
test
Dec 24, 2020
40d7a16
test
Dec 24, 2020
b7354fc
test cp
Dec 24, 2020
913241e
test
Dec 24, 2020
288760c
test
Dec 24, 2020
9c14968
test
Dec 24, 2020
442a0f4
test
Dec 24, 2020
b68b625
final
Dec 24, 2020
230c706
test
Dec 24, 2020
be461f2
test
Dec 24, 2020
0fb4f46
test
Dec 24, 2020
0cba9fc
final version
Dec 24, 2020
27a274a
final basket workflow
Dec 24, 2020
b67b05f
final version
Dec 24, 2020
19a1e77
fix secret ref
Dec 24, 2020
4699574
basket catalog identity ordering workflows
Dec 24, 2020
5e516dd
added github workflows
Dec 28, 2020
90fe35f
remove azure pipelines
Dec 28, 2020
32d056e
test builds on branch
Dec 28, 2020
81e4312
Small Refactoring (#1558)
vishipayyallore Dec 28, 2020
bb62bd7
final workflows
Dec 28, 2020
ce504d9
Updated to aspnet 5 dockerfiles.development for azds
Dec 28, 2020
ad29cfc
fix restores on docker.develop images
Dec 28, 2020
c64bf79
revert host setting
Dec 29, 2020
466ec86
missing identityurlexternal in helm config
Dec 29, 2020
600d0aa
Small-Formatting-Refactoring (#1564)
vishipayyallore Dec 30, 2020
6f8f247
Swamy/01jan2021-small-refactoring (#1570)
vishipayyallore Jan 4, 2021
8633d2b
Merge pull request #1567 from borjasanes/fix/missing-helm-config
mvelosop Jan 12, 2021
899bf20
remove windows build
Jan 12, 2021
0b786af
remove trigger on working branch
Jan 12, 2021
2420b7f
Merge pull request #1566 from borjasanes/feature/docker-files-develop…
mvelosop Jan 12, 2021
25f3eee
Merge pull request #1565 from borjasanes/feature/github-actions
mvelosop Jan 12, 2021
70a5e7b
Removes dotnet.myget.org NuGetPackage feed references (#1576)
Jan 12, 2021
96c0c1d
Upgrade key packages
mvelosop Jan 13, 2021
79e7e42
Upgrade healthchecks packages
mvelosop Jan 13, 2021
d58794b
readme actions
Jan 13, 2021
598c675
Upgrade identity server, fix VS F5 unauthorized_client problem
mvelosop Jan 13, 2021
1350789
Merge pull request #1578 from borjasanes/feature/add-readme-to-actions
mvelosop Jan 13, 2021
aa053bc
Merge pull request #1579 from dotnet-architecture/migration/packages-…
mvelosop Jan 13, 2021
1e2760c
Swamy/04 jan2021-small-refactoring (#1571)
vishipayyallore Jan 15, 2021
afb4534
Fixes #1581: Fixed total decimal place issue and User hover menu disp…
hetal-kapadia Jan 18, 2021
130e46c
Swamy/15jan2021 small refactoring (#1580)
vishipayyallore Jan 19, 2021
40faa73
Incorrect ContentPage.ToolbarItems in a TabbedPage (#1348)
william-keller Jan 20, 2021
586622c
use identity internal network
Jan 20, 2021
9b0366f
fix identity url in current helm version
Jan 20, 2021
ce10040
revert archived
Jan 20, 2021
2b91170
clean up solution
Jan 20, 2021
25f095c
Merge pull request #1584 from borjasanes/fix/signalrhub-k8s-setting-i…
mvelosop Jan 20, 2021
d0bee56
Merge pull request #1585 from borjasanes/maintenance/code-cleanup
mvelosop Jan 20, 2021
8da9c84
Add community code changes since migration start
mvelosop Jan 20, 2021
f3ecf87
Merge remote-tracking branch 'origin/migration/net-5' into migration/…
mvelosop Jan 20, 2021
7b3764c
Merge branch 'dev' into migration/net-5
mvelosop Jan 20, 2021
8689cf0
Remove "obsolete" folder
mvelosop Jan 20, 2021
db10da6
Remove main branch from action triggers
mvelosop Jan 20, 2021
5e0f55c
Merge pull request #1587 from dotnet-architecture/migration/net-5
mvelosop Jan 20, 2021
e270b8d
fix envoy config in helm
Jan 24, 2021
806157c
update helm chart to use sqlserver 2019
Jan 24, 2021
7feb1a2
rerun GitHub Actions
Jan 24, 2021
fda8d8f
program to top level statement
Jan 24, 2021
b93c6d6
path filter on pr SPA
Jan 24, 2021
b652c70
added path filter on pr
Jan 24, 2021
61b24ff
Merge pull request #4 from borjasanes/fix/filter-workflows-on-pr
borjasanes Jan 24, 2021
8113159
Merge pull request #6 from borjasanes/fix/filter-workflows-on-pr
borjasanes Jan 24, 2021
2be88eb
test path filter on spa
Jan 24, 2021
71c7e41
formatting
Jan 24, 2021
c01c1b3
Bump socket.io from 2.3.0 to 2.4.1 in /src/Web/WebSPA (#1588)
dependabot[bot] Jan 25, 2021
6ab2110
Merge pull request #1591 from borjasanes/fix/signalr-envoy-k8s
mvelosop Jan 25, 2021
d0b1dd0
Merge pull request #1592 from borjasanes/fix/sqlserver-2019-helm
mvelosop Jan 25, 2021
fdc1e3e
Merge pull request #1593 from borjasanes/fix/filter-workflows-on-pr
mvelosop Jan 25, 2021
68904b2
Merge branch 'dev' of https://github.com/dotnet-architecture/eShopOnC…
Jan 25, 2021
858afb7
Merge branch 'dev' of https://github.com/borjasanes/eShopOnContainers…
Jan 25, 2021
49daf28
Merge pull request #1595 from borjasanes/fix/top-level-statement-orde…
mvelosop Jan 26, 2021
1961d77
Merge branch 'dev' of https://github.com/dotnet-architecture/eShopOnC…
Jan 26, 2021
97bfcf2
include subfolders in filtering path
Jan 26, 2021
bc7332f
Merge pull request #1596 from borjasanes/fix/workflow-path-filter
mvelosop Jan 26, 2021
c09191f
Updated npm packages. (#1594)
Jan 27, 2021
834af12
Fixes : #1599 | Applies patch to dotnet/sdk buster-slim docker image …
Feb 4, 2021
faa26cc
Updated readme files (#1589)
Feb 5, 2021
22d8530
Update README.md
nishanil Feb 5, 2021
6e2fed6
marked package updated to latest ver 2.0 (#1605)
Sreenivas-Kalluru Feb 9, 2021
76fbcff
Feature/add mobile readme (#1606)
Sreenivas-Kalluru Feb 10, 2021
df93807
GracePeriodManagerTask renamed in GracePeriodManagerService (#1615)
alecola Mar 2, 2021
9b1a08a
Service Bus persisted connection for ISubscriptionClient (#1521)
Marusyk Mar 9, 2021
179ae79
Fix ordering-signalrhub workflow badge image (#1624)
f1nzer Mar 9, 2021
873cdf8
Bump elliptic from 6.5.3 to 6.5.4 in /src/Web/WebSPA (#1623)
dependabot[bot] Mar 9, 2021
68f5afd
Fix WebSPA pager display (#1629)
n-stefan Mar 15, 2021
8b4ab00
updated package version for ssri and is-svg (#1636)
Sreenivas-Kalluru Mar 24, 2021
5974647
Fix WebSPA catalog filter (#1637)
n-stefan Mar 25, 2021
a71b004
updated CardType and Enumeration classes (#1528)
mfcallahan Apr 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
92 changes: 92 additions & 0 deletions .github/workflows/basket-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: basket-api

on:
push:
branches:
- dev

paths:
- src/BuildingBlocks/**
- src/Services/Basket/**
- .github/workflows/basket-api.yml

pull_request:
branches:
- dev

paths:
- src/BuildingBlocks/**
- src/Services/Basket/**
- .github/workflows/basket-api.yml
env:
SERVICE: basket-api
IMAGE: basket.api

jobs:

BuildContainersForPR_Linux:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

BuildLinux:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Enable experimental features for the Docker daemon and CLI
run: |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
mkdir -p ~/.docker
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
sudo service docker restart
docker version -f '{{.Client.Experimental}}'
docker version -f '{{.Server.Experimental}}'

- name: Login to Container Registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}

- name: Set branch name as env variable
run: |
currentbranch=$(echo ${GITHUB_REF##*/})
echo "running on $currentbranch"
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
shell: bash

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Compose push ${{ env.SERVICE }}
run: sudo -E docker-compose push ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Create multiarch manifest
run: |
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
shell: bash
92 changes: 92 additions & 0 deletions .github/workflows/catalog-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: catalog-api

on:
push:
branches:
- dev

paths:
- src/BuildingBlocks/**
- src/Services/Catalog/**
- .github/workflows/catalog-api.yml

pull_request:
branches:
- dev

paths:
- src/BuildingBlocks/**
- src/Services/Catalog/**
- .github/workflows/catalog-api.yml
env:
SERVICE: catalog-api
IMAGE: catalog.api

jobs:

BuildContainersForPR_Linux:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

BuildLinux:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Enable experimental features for the Docker daemon and CLI
run: |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
mkdir -p ~/.docker
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
sudo service docker restart
docker version -f '{{.Client.Experimental}}'
docker version -f '{{.Server.Experimental}}'

- name: Login to Container Registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}

- name: Set branch name as env variable
run: |
currentbranch=$(echo ${GITHUB_REF##*/})
echo "running on $currentbranch"
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
shell: bash

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Compose push ${{ env.SERVICE }}
run: sudo -E docker-compose push ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Create multiarch manifest
run: |
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
shell: bash
92 changes: 92 additions & 0 deletions .github/workflows/identity-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: identity-api

on:
push:
branches:
- dev

paths:
- src/BuildingBlocks/**
- src/Services/Identity/**
- .github/workflows/identity-api.yml

pull_request:
branches:
- dev

paths:
- src/BuildingBlocks/**
- src/Services/Identity/**
- .github/workflows/identity-api.yml
env:
SERVICE: identity-api
IMAGE: identity.api

jobs:

BuildContainersForPR_Linux:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

BuildLinux:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Enable experimental features for the Docker daemon and CLI
run: |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
mkdir -p ~/.docker
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
sudo service docker restart
docker version -f '{{.Client.Experimental}}'
docker version -f '{{.Server.Experimental}}'

- name: Login to Container Registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}

- name: Set branch name as env variable
run: |
currentbranch=$(echo ${GITHUB_REF##*/})
echo "running on $currentbranch"
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
shell: bash

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Compose push ${{ env.SERVICE }}
run: sudo -E docker-compose push ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Create multiarch manifest
run: |
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
shell: bash
90 changes: 90 additions & 0 deletions .github/workflows/mobileshoppingagg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: mobileshoppingagg

on:
push:
branches:
- dev

paths:
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/**
- .github/workflows/mobileshoppingagg.yml

pull_request:
branches:
- dev

paths:
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/**
- .github/workflows/mobileshoppingagg.yml
env:
SERVICE: mobileshoppingagg
IMAGE: mobileshoppingagg

jobs:

BuildContainersForPR_Linux:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

BuildLinux:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Enable experimental features for the Docker daemon and CLI
run: |
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
mkdir -p ~/.docker
echo $'{\n "experimental": "enabled"\n}' | sudo tee ~/.docker/config.json
sudo service docker restart
docker version -f '{{.Client.Experimental}}'
docker version -f '{{.Server.Experimental}}'

- name: Login to Container Registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}

- name: Set branch name as env variable
run: |
currentbranch=$(echo ${GITHUB_REF##*/})
echo "running on $currentbranch"
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
shell: bash

- name: Compose build ${{ env.SERVICE }}
run: sudo -E docker-compose build ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Compose push ${{ env.SERVICE }}
run: sudo -E docker-compose push ${{ env.SERVICE }}
working-directory: ./src
shell: bash
env:
TAG: ${{ env.BRANCH }}
REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}

- name: Create multiarch manifest
run: |
docker --config ~/.docker manifest create ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }} ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:linux-${{ env.BRANCH }}
docker --config ~/.docker manifest push ${{ secrets.REGISTRY_ENDPOINT }}/${{ env.IMAGE }}:${{ env.BRANCH }}
shell: bash
Loading