Skip to content

Commit

Permalink
added trigger to GH workflows. updated YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
chzbrgr71 committed Jun 19, 2023
1 parent bae835e commit 9005754
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/package-ai-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-ai-service

on:
push:
branches:
- 'main'
paths:
- 'ai-service/**'

on:
workflow_dispatch:

Expand All @@ -21,6 +28,7 @@ jobs:
echo ::set-output name=project::ai-service
echo ::set-output name=image::ai-service
echo ::set-output name=repository::ghcr.io/azure-samples/aks-store-demo
echo "{project}={ai-service}" >> $GITHUB_STATE
package-service:
name: Package Service
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package-makeline-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-makeline-service

on:
push:
branches:
- 'main'
paths:
- 'makeline-service/**'

on:
workflow_dispatch:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package-order-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-order-service

on:
push:
branches:
- 'main'
paths:
- 'order-service/**'

on:
workflow_dispatch:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package-product-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-product-service

on:
push:
branches:
- 'main'
paths:
- 'product-service/**'

on:
workflow_dispatch:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package-store-back-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-store-admin

on:
push:
branches:
- 'main'
paths:
- 'store-admin/**'

on:
workflow_dispatch:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package-store-front-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-store-front

on:
push:
branches:
- 'main'
paths:
- 'store-front/**'

on:
workflow_dispatch:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package-virtual-customer-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-virtual-customer

on:
push:
branches:
- 'main'
paths:
- 'virtual-customer/**'

on:
workflow_dispatch:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package-virtual-worker-service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: package-virtual-worker

on:
push:
branches:
- 'main'
paths:
- 'virtual-worker/**'

on:
workflow_dispatch:

Expand Down
8 changes: 6 additions & 2 deletions aks-store-all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ spec:
- name: FASTIFY_ADDRESS
value: "0.0.0.0"
resources: {}
initContainers:
- name: wait-for-rabbitmq
image: busybox
command: ['sh', '-c', 'until nc -zv rabbitmq 5672; do echo waiting for rabbitmq; sleep 2; done;']
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -234,10 +238,10 @@ spec:
ports:
- containerPort: 8080
name: store-front
env:
env:aks-store-all-in-one.yaml
- name: VUE_APP_ORDER_SERVICE_URL
value: "http://order-service:3000/"
- name: PRODUCT_SERVICE_URL
- name: VUE_APP_PRODUCT_SERVICE_URL
value: "http://product-service:3002/"
resources: {}
---
Expand Down

0 comments on commit 9005754

Please sign in to comment.