Browse Source

modify github actions

pull/2119/head
Baligh Mehrez 1 year ago
parent
commit
7e018d2b52
33 changed files with 35 additions and 173 deletions
  1. +0
    -4
      .dockerignore
  2. +0
    -65
      .github/workflows/TheArchitectsVault-WF.yaml
  3. +0
    -1
      .github/workflows/basket-api-deploy.yml
  4. +2
    -2
      .github/workflows/basket-api.yml
  5. +0
    -1
      .github/workflows/catalog-api-deploy.yml
  6. +2
    -2
      .github/workflows/catalog-api.yml
  7. +4
    -6
      .github/workflows/composite/deploy-helm/action.yml
  8. +0
    -1
      .github/workflows/identity-api-deploy.yml
  9. +2
    -2
      .github/workflows/identity-api.yml
  10. +0
    -1
      .github/workflows/mobileshoppingagg-deploy.yml
  11. +2
    -2
      .github/workflows/mobileshoppingagg.yml
  12. +0
    -1
      .github/workflows/ordering-api-deploy.yml
  13. +2
    -2
      .github/workflows/ordering-api.yml
  14. +0
    -1
      .github/workflows/ordering-backgroundtasks-deploy.yml
  15. +2
    -2
      .github/workflows/ordering-backgroundtasks.yml
  16. +0
    -1
      .github/workflows/ordering-signalrhub-deploy.yml
  17. +2
    -2
      .github/workflows/ordering-signalrhub.yml
  18. +0
    -1
      .github/workflows/payment-api-deploy.yml
  19. +2
    -2
      .github/workflows/payment-api.yml
  20. +0
    -1
      .github/workflows/webhooks-api-deploy.yml
  21. +2
    -2
      .github/workflows/webhooks-api.yml
  22. +2
    -2
      .github/workflows/webhooks-client.yml
  23. +3
    -2
      .github/workflows/webmvc-deploy.yml
  24. +2
    -2
      .github/workflows/webmvc.yml
  25. +0
    -1
      .github/workflows/webshoppingagg-deploy.yml
  26. +2
    -2
      .github/workflows/webshoppingagg.yml
  27. +0
    -1
      .github/workflows/webspa-deploy.yml
  28. +2
    -2
      .github/workflows/webspa.yml
  29. +0
    -1
      .github/workflows/webstatus-deploy.yml
  30. +2
    -2
      .github/workflows/webstatus.yml
  31. +0
    -21
      Dockerfile
  32. +0
    -22
      manifests/deployment.yaml
  33. +0
    -13
      manifests/service.yaml

+ 0
- 4
.dockerignore View File

@ -1,4 +0,0 @@
Dockerfile
charts/
bin/
obj/

+ 0
- 65
.github/workflows/TheArchitectsVault-WF.yaml View File

@ -1,65 +0,0 @@
name: TheArchitectsVault-WF
"on":
push:
branches:
- dev
workflow_dispatch: {}
env:
ACR_RESOURCE_GROUP: TheArchitectsVault_group
AZURE_CONTAINER_REGISTRY: acrworkflow1686232508452
CLUSTER_NAME: TheArchitectsVault
CLUSTER_RESOURCE_GROUP: TheArchitectsVault_group
CONTAINER_NAME: image-workflow-1686232508452
DEPLOYMENT_MANIFEST_PATH: |
manifests/deployment.yaml
manifests/service.yaml
jobs:
buildImage:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2
name: Azure login
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
- name: Build and push image to ACR
run: az acr build --image ${{ env.CONTAINER_NAME }}:${{ github.sha }} --registry ${{ env.AZURE_CONTAINER_REGISTRY }} -g ${{ env.ACR_RESOURCE_GROUP }} -f Dockerfile ./
deploy:
permissions:
actions: read
contents: read
id-token: write
runs-on: ubuntu-latest
needs:
- buildImage
steps:
- uses: actions/checkout@v3
- uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2
name: Azure login
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
- uses: azure/use-kubelogin@v1
name: Set up kubelogin for non-interactive login
with:
kubelogin-version: v0.0.25
- uses: azure/aks-set-context@v3
name: Get K8s context
with:
admin: "false"
cluster-name: ${{ env.CLUSTER_NAME }}
resource-group: ${{ env.CLUSTER_RESOURCE_GROUP }}
use-kubelogin: "true"
- uses: Azure/k8s-deploy@v4
name: Deploys application
with:
action: deploy
images: ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }}
manifests: ${{ env.DEPLOYMENT_MANIFEST_PATH }}
namespace: namespace-workflow-1686232508452

+ 0
- 1
.github/workflows/basket-api-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/basket-api.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/catalog-api-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/catalog-api.yml View File

@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-test - uses: ./.github/workflows/composite/build-test
with: with:
@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 4
- 6
.github/workflows/composite/deploy-helm/action.yml View File

@ -2,9 +2,6 @@ name: "Deploy Helm to AKS"
description: "Deploys a helm chart to AKS" description: "Deploys a helm chart to AKS"
inputs: inputs:
azure_credentials:
description: "Credentials to connect to AKS"
required: true
cluster_name: cluster_name:
description: "Name of AKS cluster" description: "Name of AKS cluster"
required: true required: true
@ -29,12 +26,13 @@ runs:
steps: steps:
- uses: azure/login@v1 - uses: azure/login@v1
with: with:
creds: ${{ inputs.azure_credentials }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
- uses: azure/aks-set-context@v1
- uses: azure/aks-set-context@v3
name: Set AKS context name: Set AKS context
with: with:
creds: '${{ inputs.azure_credentials }}'
cluster-name: ${{ inputs.cluster_name }} cluster-name: ${{ inputs.cluster_name }}
resource-group: ${{ inputs.resource_group }} resource-group: ${{ inputs.resource_group }}


+ 0
- 1
.github/workflows/identity-api-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/identity-api.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/mobileshoppingagg-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/mobileshoppingagg.yml View File

@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/ordering-api-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/ordering-api.yml View File

@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-test - uses: ./.github/workflows/composite/build-test
with: with:
@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/ordering-backgroundtasks-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/ordering-backgroundtasks.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/ordering-signalrhub-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/ordering-signalrhub.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/payment-api-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/payment-api.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/webhooks-api-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/webhooks-api.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 2
- 2
.github/workflows/webhooks-client.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 3
- 2
.github/workflows/webmvc-deploy.yml View File

@ -26,11 +26,12 @@ jobs:
- uses: azure/login@v1 - uses: azure/login@v1
with: with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/webmvc.yml View File

@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/webshoppingagg-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/webshoppingagg.yml View File

@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/webspa-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/webspa.yml View File

@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 1
.github/workflows/webstatus-deploy.yml View File

@ -26,7 +26,6 @@ jobs:
- uses: ./.github/workflows/composite/deploy-helm - uses: ./.github/workflows/composite/deploy-helm
with: with:
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
cluster_name: ${{ secrets.CLUSTER_NAME }} cluster_name: ${{ secrets.CLUSTER_NAME }}
resource_group: ${{ secrets.RESOURCE_GROUP }} resource_group: ${{ secrets.RESOURCE_GROUP }}
registry_host: ${{ secrets.REGISTRY_HOST }} registry_host: ${{ secrets.REGISTRY_HOST }}


+ 2
- 2
.github/workflows/webstatus.yml View File

@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build - uses: ./.github/workflows/composite/build
with: with:
@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
steps: steps:
- name: Checkout code
- name: Checkout source code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push - uses: ./.github/workflows/composite/build-push
with: with:


+ 0
- 21
Dockerfile View File

@ -1,21 +0,0 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder
WORKDIR /app
# caches restore result by copying csproj file separately
COPY *.csproj .
RUN dotnet restore
COPY . .
RUN dotnet publish --output /app/ --configuration Release --no-restore
RUN sed -n 's:.*<AssemblyName>\(.*\)</AssemblyName>.*:\1:p' *.csproj > __assemblyname
RUN if [ ! -s __assemblyname ]; then filename=$(ls *.csproj); echo ${filename%.*} > __assemblyname; fi
# Stage 2
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY --from=builder /app .
ENV PORT 5000
EXPOSE 5000
ENTRYPOINT dotnet $(cat /app/__assemblyname).dll --urls "http://*:5000"

+ 0
- 22
manifests/deployment.yaml View File

@ -1,22 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: TheArchitectsVault-WF
labels:
app: TheArchitectsVault-WF
namespace: namespace-workflow-1686232508452
spec:
replicas: 1
selector:
matchLabels:
app: TheArchitectsVault-WF
template:
metadata:
labels:
app: TheArchitectsVault-WF
spec:
containers:
- name: TheArchitectsVault-WF
image: acrworkflow1686232508452.azurecr.io/image-workflow-1686232508452:latest
ports:
- containerPort: 5000

+ 0
- 13
manifests/service.yaml View File

@ -1,13 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: TheArchitectsVault-WF
namespace: namespace-workflow-1686232508452
spec:
type: LoadBalancer
selector:
app: TheArchitectsVault-WF
ports:
- protocol: TCP
port: 5000
targetPort: 5000

Loading…
Cancel
Save