From 900575450a7cc98590ffe34827329e01f3d0222e Mon Sep 17 00:00:00 2001 From: Brian Redmond Date: Mon, 19 Jun 2023 11:26:44 -0600 Subject: [PATCH] added trigger to GH workflows. updated YAML --- .github/workflows/package-ai-service.yaml | 8 ++++++++ .github/workflows/package-makeline-service.yaml | 7 +++++++ .github/workflows/package-order-service.yaml | 7 +++++++ .github/workflows/package-product-service.yaml | 7 +++++++ .github/workflows/package-store-back-service.yaml | 7 +++++++ .github/workflows/package-store-front-service.yaml | 7 +++++++ .github/workflows/package-virtual-customer-service.yaml | 7 +++++++ .github/workflows/package-virtual-worker-service.yaml | 7 +++++++ aks-store-all-in-one.yaml | 8 ++++++-- 9 files changed, 63 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-ai-service.yaml b/.github/workflows/package-ai-service.yaml index 7613b7e3..54d8d8e6 100644 --- a/.github/workflows/package-ai-service.yaml +++ b/.github/workflows/package-ai-service.yaml @@ -1,5 +1,12 @@ name: package-ai-service +on: + push: + branches: + - 'main' + paths: + - 'ai-service/**' + on: workflow_dispatch: @@ -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 diff --git a/.github/workflows/package-makeline-service.yaml b/.github/workflows/package-makeline-service.yaml index 49d24c12..367e9490 100644 --- a/.github/workflows/package-makeline-service.yaml +++ b/.github/workflows/package-makeline-service.yaml @@ -1,5 +1,12 @@ name: package-makeline-service +on: + push: + branches: + - 'main' + paths: + - 'makeline-service/**' + on: workflow_dispatch: diff --git a/.github/workflows/package-order-service.yaml b/.github/workflows/package-order-service.yaml index d7aa38c8..0f5ed9da 100644 --- a/.github/workflows/package-order-service.yaml +++ b/.github/workflows/package-order-service.yaml @@ -1,5 +1,12 @@ name: package-order-service +on: + push: + branches: + - 'main' + paths: + - 'order-service/**' + on: workflow_dispatch: diff --git a/.github/workflows/package-product-service.yaml b/.github/workflows/package-product-service.yaml index 040f222c..bef9b61f 100644 --- a/.github/workflows/package-product-service.yaml +++ b/.github/workflows/package-product-service.yaml @@ -1,5 +1,12 @@ name: package-product-service +on: + push: + branches: + - 'main' + paths: + - 'product-service/**' + on: workflow_dispatch: diff --git a/.github/workflows/package-store-back-service.yaml b/.github/workflows/package-store-back-service.yaml index e359133b..72376467 100644 --- a/.github/workflows/package-store-back-service.yaml +++ b/.github/workflows/package-store-back-service.yaml @@ -1,5 +1,12 @@ name: package-store-admin +on: + push: + branches: + - 'main' + paths: + - 'store-admin/**' + on: workflow_dispatch: diff --git a/.github/workflows/package-store-front-service.yaml b/.github/workflows/package-store-front-service.yaml index 914ec27b..c51cb4f3 100644 --- a/.github/workflows/package-store-front-service.yaml +++ b/.github/workflows/package-store-front-service.yaml @@ -1,5 +1,12 @@ name: package-store-front +on: + push: + branches: + - 'main' + paths: + - 'store-front/**' + on: workflow_dispatch: diff --git a/.github/workflows/package-virtual-customer-service.yaml b/.github/workflows/package-virtual-customer-service.yaml index 2565002f..f2fc41ad 100644 --- a/.github/workflows/package-virtual-customer-service.yaml +++ b/.github/workflows/package-virtual-customer-service.yaml @@ -1,5 +1,12 @@ name: package-virtual-customer +on: + push: + branches: + - 'main' + paths: + - 'virtual-customer/**' + on: workflow_dispatch: diff --git a/.github/workflows/package-virtual-worker-service.yaml b/.github/workflows/package-virtual-worker-service.yaml index 4e978c31..eb99807f 100644 --- a/.github/workflows/package-virtual-worker-service.yaml +++ b/.github/workflows/package-virtual-worker-service.yaml @@ -1,5 +1,12 @@ name: package-virtual-worker +on: + push: + branches: + - 'main' + paths: + - 'virtual-worker/**' + on: workflow_dispatch: diff --git a/aks-store-all-in-one.yaml b/aks-store-all-in-one.yaml index 98b329bc..0c2be870 100644 --- a/aks-store-all-in-one.yaml +++ b/aks-store-all-in-one.yaml @@ -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 @@ -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: {} ---