Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/build-and-publish-api-mssql-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env:
IMAGE_NAME: api-mssql-go
LABEL: 1.0.0

permissions:
contents: read
packages: write

jobs:
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -29,7 +33,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v3.1.0
with:
context: "{{defaultContext}}:dsagtt22/ordermicroservice/api-mssql-go"
context: "{{defaultContext}}:dsagtt22/ordermicroservice/api-mssql-go"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
10 changes: 7 additions & 3 deletions .github/workflows/build-and-publish-custom-component-dapr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ env:
IMAGE_NAME: daprwishlistapp
LABEL: 1.0.0

permissions:
contents: read
packages: write

jobs:
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -23,13 +27,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
- name: 'Install dependencies and Build'
- name: "Install dependencies and Build"
shell: bash
run: |
pushd './custom-component-dapr'
npm ci
npm run build
popd
popd
- name: Log in to the Container registry (GH Packages)
uses: docker/login-action@v2
with:
Expand All @@ -49,4 +53,4 @@ jobs:
context: ./${{ env.SUBDIRECTORY }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
6 changes: 5 additions & 1 deletion .github/workflows/build-and-publish-database-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env:
IMAGE_NAME: mssql
LABEL: 1.0.0

permissions:
contents: read
packages: write

jobs:
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -32,4 +36,4 @@ jobs:
context: "{{defaultContext}}:dsagtt22/ordermicroservice/database-mssql"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 6 additions & 2 deletions .github/workflows/build-and-publish-frontend-ui5-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env:
IMAGE_NAME: frontend-ui5-mssql
LABEL: 1.0.0

permissions:
contents: read
packages: write

jobs:
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -29,7 +33,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v3.1.0
with:
context: "{{defaultContext}}:dsagtt22/ordermicroservice/frontend-ui5-mssql"
context: "{{defaultContext}}:dsagtt22/ordermicroservice/frontend-ui5-mssql"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
10 changes: 7 additions & 3 deletions .github/workflows/build-and-publish-onprem-mock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ env:
IMAGE_NAME: dsagtt22-onprem-mock
LABEL: 1.0.0

permissions:
contents: read
packages: write

jobs:
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -21,13 +25,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16
- name: 'Install dependencies and Build'
- name: "Install dependencies and Build"
shell: bash
run: |
pushd './dsagtt22/onprem-mock'
npm ci
npm run build
popd
popd
- name: Log in to the Container registry (GH Packages)
uses: docker/login-action@v2
with:
Expand All @@ -47,4 +51,4 @@ jobs:
context: ./${{ env.SUBDIRECTORY }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
6 changes: 5 additions & 1 deletion .github/workflows/build-and-publish-sapcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env:
IMAGE_NAME: java11-sapcc
LABEL: 1.0.0

permissions:
contents: read
packages: write

jobs:
build_and_push:
runs-on: ubuntu-latest
Expand All @@ -32,4 +36,4 @@ jobs:
context: "{{defaultContext}}:dsagtt22/CloudConnector"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
24 changes: 13 additions & 11 deletions .github/workflows/build-docker-custom-component-dapr.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
name: Build docker for the Custom Component Sample
on:
push:
branches: [ main ]
branches: [main]
paths:
- "custom-component-dapr/**"
- "custom-component-dapr/**"
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 'Install dependencies and Build'
- name: "Install dependencies and Build"
shell: bash
run: |
pushd './custom-component-dapr'
npm ci
npm run build --if-present
popd
- name: 'Check for outdated dependencies'
- name: "Check for outdated dependencies"
shell: bash
run: |
pushd './custom-component-dapr'
npm outdated --ignore-packages dapr-client@2.0.2
popd
- name: 'Build Docker Image'
- name: "Build Docker Image"
shell: bash
run: |
pushd './custom-component-dapr'
Expand All @@ -42,5 +44,5 @@ jobs:
uses: rtCamp/action-slack-notify@v2.2.0
if: ${{ failure() }}
env:
SLACK_MESSAGE: 'Build Failed for ${{ env.SAMPLE_NAME }}'
SLACK_WEBHOOK: ${{ secrets.BUILD_FAIL_NOTIFY_SLACK_URL }}
SLACK_MESSAGE: "Build Failed for ${{ env.SAMPLE_NAME }}"
SLACK_WEBHOOK: ${{ secrets.BUILD_FAIL_NOTIFY_SLACK_URL }}
22 changes: 13 additions & 9 deletions .github/workflows/build-docker-hana-nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
name: Build docker for the HANA Node.js Sample
on:
push:
branches: [ main ]
branches: [main]
paths:
- "hana-nodejs/**"
- "hana-nodejs/**"
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 'Install dependencies and Build'
- name: "Install dependencies and Build"
shell: bash
run: |
pushd './hana-nodejs/app'
npm ci
npm run build --if-present
popd
- name: 'Check for outdated dependencies'
- name: "Check for outdated dependencies"
shell: bash
run: |
pushd './hana-nodejs/app'
npm outdated
popd
- name: 'Build Docker Image'
- name: "Build Docker Image"
shell: bash
run: |
pushd './hana-nodejs'
Expand All @@ -40,5 +44,5 @@ jobs:
uses: rtCamp/action-slack-notify@v2.2.0
if: ${{ failure() }}
env:
SLACK_MESSAGE: 'Build Failed for ${{ env.SAMPLE_NAME }}'
SLACK_WEBHOOK: ${{ secrets.BUILD_FAIL_NOTIFY_SLACK_URL }}
SLACK_MESSAGE: "Build Failed for ${{ env.SAMPLE_NAME }}"
SLACK_WEBHOOK: ${{ secrets.BUILD_FAIL_NOTIFY_SLACK_URL }}
9 changes: 7 additions & 2 deletions .github/workflows/build-docker-orders-service.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Build docker for the Orders Service Sample
on:
push:
branches: [ main ]
branches: [main]
paths:
- "orders-service/**"
- "orders-service/**"
workflow_dispatch:

permissions:
contents: read
packages: write

env:
REGISTRY: ghcr.io
SUBDIRECTORY: orders-service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,37 @@ name: Build docker sample-extension-dotnet-minimalapi

on:
push:
branches: [ main ]
branches: [main]
paths:
- "sample-extension-dotnet-minimalapi/**"
- "sample-extension-dotnet-minimalapi/**"
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: 'Build .NET Project'
shell: bash
run: |
pushd './sample-extension-dotnet-minimalapi/TodoApi'
dotnet publish -c Release
popd
- name: Build the Docker image
shell: bash
run: |
pushd './sample-extension-dotnet-minimalapi/'
make build-image
popd
- name: Slack Notify
uses: rtCamp/action-slack-notify@v2.2.0
if: ${{ failure() }}
env:
SLACK_MESSAGE: 'Build Failed for ${{ env.SAMPLE_NAME }}'
SLACK_WEBHOOK: ${{ secrets.BUILD_FAIL_NOTIFY_SLACK_URL }}
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"
- name: "Build .NET Project"
shell: bash
run: |
pushd './sample-extension-dotnet-minimalapi/TodoApi'
dotnet publish -c Release
popd
- name: Build the Docker image
shell: bash
run: |
pushd './sample-extension-dotnet-minimalapi/'
make build-image
popd
- name: Slack Notify
uses: rtCamp/action-slack-notify@v2.2.0
if: ${{ failure() }}
env:
SLACK_MESSAGE: "Build Failed for ${{ env.SAMPLE_NAME }}"
SLACK_WEBHOOK: ${{ secrets.BUILD_FAIL_NOTIFY_SLACK_URL }}
6 changes: 4 additions & 2 deletions .github/workflows/deploy-onpremmock-to-kyma.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: DSAG TT 2022 - Deploy on prem mock to Kyma
name: DSAG TT 2022 - Deploy on prem mock to Kyma

on:
workflow_dispatch: {}
env:
NAMESPACE: dsagtt22-sapcc

permissions:
contents: read

jobs:
execute_deployment:
runs-on: ubuntu-latest
Expand All @@ -19,4 +22,3 @@ jobs:
- name: Execute deployment of on-premise mock
run: |
kubectl apply -f dsagtt22/onprem-mock/k8s/deployment.yaml

13 changes: 8 additions & 5 deletions .github/workflows/deploy-order-microservice-to-kyma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
env:
NAMESPACE: dsagtt22

permissions:
contents: read

jobs:
execute_deployment:
runs-on: ubuntu-latest
Expand All @@ -24,23 +27,23 @@ jobs:
run: |
echo "*** Create secret ***"
kubectl apply -f dsagtt22/ordermicroservice/database-mssql/k8s/secret.yaml -n ${{ env.NAMESPACE }}
echo "*** Create persistent volume claim ***"
echo "*** Create persistent volume claim ***"
kubectl apply -f dsagtt22/ordermicroservice/database-mssql/k8s/pvc.yaml -n ${{ env.NAMESPACE }}
echo "*** Create deployment ***"
kubectl apply -f dsagtt22/ordermicroservice/database-mssql/k8s/deployment.yaml -n ${{ env.NAMESPACE }}
- name: Setup GO API for MS SQL in Kyma
run: |
echo "*** Create configmap ***"
echo "*** Create configmap ***"
kubectl apply -f dsagtt22/ordermicroservice/api-mssql-go/k8s/configmap.yaml -n ${{ env.NAMESPACE }}
echo "*** Create deployment ***"
kubectl apply -f dsagtt22/ordermicroservice/api-mssql-go/k8s/deployment.yaml -n ${{ env.NAMESPACE }}
echo "*** Create API rule ***"
kubectl apply -f dsagtt22/ordermicroservice/api-mssql-go/k8s/apirule.yaml -n ${{ env.NAMESPACE }}
kubectl apply -f dsagtt22/ordermicroservice/api-mssql-go/k8s/apirule.yaml -n ${{ env.NAMESPACE }}
- name: Setup UI5 frontend for MS SQL in Kyma
run: |
echo "*** Create configmap ***"
echo "*** Create configmap ***"
kubectl apply -f dsagtt22/ordermicroservice/frontend-ui5-mssql/k8s/configmap.yaml -n ${{ env.NAMESPACE }}
echo "*** Create deployment ***"
kubectl apply -f dsagtt22/ordermicroservice/frontend-ui5-mssql/k8s/deployment.yaml -n ${{ env.NAMESPACE }}
echo "*** Create API rule ***"
kubectl apply -f dsagtt22/ordermicroservice/frontend-ui5-mssql/k8s/apirule.yaml -n ${{ env.NAMESPACE }}
kubectl apply -f dsagtt22/ordermicroservice/frontend-ui5-mssql/k8s/apirule.yaml -n ${{ env.NAMESPACE }}
Loading
Loading