Skip to content

Commit 00c22be

Browse files
authored
Pipeline Verbesserungen (#11)
1 parent dfa7ace commit 00c22be

File tree

113 files changed

+215
-2916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+215
-2916
lines changed

.github/workflows/build-all.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,34 @@
11
name: build all
22

3-
env:
4-
app-path: "/sps-backend" # example "/backend" for monorepos or "" for multi repos
5-
on: [push]
3+
on: [push]
64
jobs:
7-
build-maven:
5+
build:
86
runs-on: ubuntu-latest
97
env:
108
TZ: Europe/Berlin # timezone
119
strategy:
1210
matrix:
13-
include:
11+
include: # hier müssen die Pfade angegeben werden
1412
- app-path: sps-backend
15-
enable-node: false
1613
- app-path: sps-frontend
17-
enable-node: true
1814
steps:
19-
- uses: it-at-m/.github/.github/actions/action-maven-node-build@main
15+
- uses: actions/checkout@v4
16+
- if: ${{hashFiles(format('./{0}/package.json', matrix.app-path))!=null}}
17+
id: node
18+
uses: it-at-m/.github/.github/actions/action-npm-build@main
2019
with:
21-
app-path: "/${{ matrix.app-path }}"
22-
enable-node: ${{ matrix.app-path }}
23-
24-
build-image:
25-
runs-on: ubuntu-latest
26-
needs: build-maven
27-
if: github.ref == 'refs/heads/main'
28-
strategy:
29-
matrix:
30-
include:
31-
- app-path: sps-backend
32-
enable-node: false
33-
- app-path: sps-frontend
34-
enable-node: true
35-
steps:
36-
- uses: it-at-m/.github/.github/actions/action-build-image@main
20+
app-path: "${{ matrix.app-path }}"
21+
- if: ${{hashFiles(format('./{0}/pom.xml', matrix.app-path))!=null}}
22+
id: maven
23+
uses: it-at-m/.github/.github/actions/action-maven-build@main
3724
with:
3825
app-path: "${{ matrix.app-path }}"
26+
- if: github.ref == 'refs/heads/test-pip'
27+
uses: it-at-m/.github/.github/actions/action-build-image@main
28+
with:
29+
path: "${{ matrix.app-path }}"
30+
image-name: "${{ matrix.app-path }}"
31+
artifact-name: ${{join(steps.*.outputs.artifact-name)}}
3932
registry-password: ${{ secrets.GITHUB_TOKEN }}
4033
registry: ghcr.io
4134
registry-username: ${{ github.actor }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sps-frontend/.gitattributes

Lines changed: 0 additions & 12 deletions
This file was deleted.

sps-frontend/.gitignore

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,158 @@ dist/
2929
nbdist/
3030
.nb-gradle/
3131

32+
# Visual Studio Code specific
33+
.vscode/
34+
*.coverage
35+
*.coveragexml
36+
*_i.c
37+
*_p.c
38+
*_i.h
39+
*.ilk
40+
*.meta
41+
*.obj
42+
*.pch
43+
*.pdb
44+
*.pgc
45+
*.pgd
46+
*.rsp
47+
*.sbr
48+
*.tlb
49+
*.tli
50+
*.tlh
51+
*.tmp
52+
*.tmp_proj
53+
*.vspscc
54+
*.vssscc
55+
.builds
56+
*.pidb
57+
*.svclog
58+
*.scc
59+
*.suo
60+
*.user
61+
*.userosscache
62+
*.sln.docstates
63+
*.userprefs
64+
[Dd]ebug/
65+
[Dd]ebugPublic/
66+
[Rr]elease/
67+
[Rr]eleases/
68+
x64/
69+
x86/
70+
bld/
71+
[Bb]in/
72+
[Oo]bj/
73+
[Ll]og/
3274

75+
.DS_Store
76+
node_modules
77+
/dist
78+
79+
# local env files
80+
.env.local
81+
.env.*.local
82+
83+
# Logs
84+
logs
85+
*.log
86+
npm-debug.log*
87+
yarn-debug.log*
88+
yarn-error.log*
89+
lerna-debug.log*
90+
91+
# Diagnostic reports (https://nodejs.org/api/report.html)
92+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
93+
94+
# Runtime data
95+
pids
96+
*.pid
97+
*.seed
98+
*.pid.lock
99+
100+
# Directory for instrumented libs generated by jscoverage/JSCover
101+
lib-cov
102+
103+
# Coverage directory used by tools like istanbul
104+
coverage
105+
*.lcov
106+
107+
# nyc test coverage
108+
.nyc_output
109+
110+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
111+
.grunt
112+
113+
# Bower dependency directory (https://bower.io/)
114+
bower_components
115+
116+
# node-waf configuration
117+
.lock-wscript
118+
119+
# Compiled binary addons (https://nodejs.org/api/addons.html)
120+
build/Release
121+
122+
# Dependency directories
123+
node_modules/
124+
jspm_packages/
125+
126+
# TypeScript v1 declaration files
127+
typings/
128+
129+
# TypeScript cache
130+
*.tsbuildinfo
131+
132+
# Optional npm cache directory
133+
.npm
134+
135+
# Optional eslint cache
136+
.eslintcache
137+
138+
# Microbundle cache
139+
.rpt2_cache/
140+
.rts2_cache_cjs/
141+
.rts2_cache_es/
142+
.rts2_cache_umd/
143+
144+
# Optional REPL history
145+
.node_repl_history
146+
147+
# Output of 'npm pack'
148+
*.tgz
149+
150+
# Yarn Integrity file
151+
.yarn-integrity
152+
153+
# dotenv environment variables file
154+
.env
155+
.env.test
156+
157+
# parcel-bundler cache (https://parceljs.org/)
158+
.cache
159+
160+
# Next.js build output
161+
.next
162+
163+
# Nuxt.js build / generate output
164+
.nuxt
165+
dist
166+
167+
# Gatsby files
168+
.cache/
169+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
170+
# https://nextjs.org/blog/next-9-1#public-directory-support
171+
# public
172+
173+
# vuepress build output
174+
.vuepress/dist
175+
176+
# Serverless directories
177+
.serverless/
178+
179+
# FuseBox cache
180+
.fusebox/
181+
182+
# DynamoDB Local files
183+
.dynamodb/
184+
185+
# TernJS port file
186+
.tern-port
File renamed without changes.

sps-frontend/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
# Dockerfiles may only contain a FROM and the application data.
2-
# For Java applications use /ubi9/openjdk-11-runtime or /ubi9/openjdk-17-runtime as Base Image, for documentation
3-
# please see https://access.redhat.com/documentation/en-us/red_hat_jboss_middleware_for_openshift/3/html/red_hat_java_s2i_for_openshift/
4-
# All other variations must be approved by KM8
1+
# For documentation see https://github.com/sclorg/nginx-container
2+
FROM registry.access.redhat.com/ubi9/nginx-124:1-25@sha256:166f66aeac8aed74ad0d4238e899654c725b8376fc573cb78756c1df103a7704
53

6-
FROM registry.access.redhat.com/ubi9/openjdk-17-runtime:latest
4+
# Copy built web application
5+
COPY dist .
76

8-
COPY apigateway/target/*.jar /deployments/application.jar
7+
# Copy custom nginx configurations
8+
COPY docker/nginx/*.conf "${NGINX_DEFAULT_CONF_PATH}"
9+
10+
# Start the web server
11+
CMD nginx -g "daemon off;"

sps-frontend/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)