Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull workflows #1

Merged
merged 88 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
0ed7635
Create build-docker-image.yaml
nookyo Dec 23, 2024
49d611f
Update build-docker-image.yaml
nookyo Dec 23, 2024
8a57ed4
add build actions to workflow
Dec 23, 2024
e94b145
distribution for Jave added
Dec 23, 2024
038765c
pre install maven
Dec 23, 2024
58392d2
change expression
Dec 23, 2024
7f72ae8
turn back
Dec 23, 2024
57658de
add maven cache
Dec 23, 2024
a199507
add dash
Dec 23, 2024
d250810
Add extrackt version from pom
Dec 23, 2024
c4dd17e
Print version
Dec 23, 2024
26183d9
Add dynamic tags for image
Dec 23, 2024
a41965d
Optimize
Dec 23, 2024
96d8bf5
fix optimize
Dec 23, 2024
06e766a
Fix
Dec 23, 2024
25f277a
dd new dcoker images
Dec 24, 2024
319538e
add JRE for final
Dec 24, 2024
1958ab2
add common workflow
Dec 24, 2024
c9fc0c2
fix
Dec 24, 2024
b96a323
rename
Dec 25, 2024
8450e3f
fix
Dec 25, 2024
393cca9
Update build-and-push.yaml
nookyo Dec 25, 2024
6ae9b19
Update build-and-push.yaml
nookyo Dec 25, 2024
a323f2c
Fix with secrets
Dec 25, 2024
b3cf5b6
New version for build
Dec 26, 2024
a31acf5
Add workflow_dispatch
Dec 26, 2024
b17280f
some fix
Dec 26, 2024
6868c44
Remove on push
Dec 26, 2024
223e539
fix
Dec 26, 2024
0bcaed6
remove on push
Dec 26, 2024
7135596
remove unnessesary
Dec 26, 2024
f07ce73
fix
Dec 26, 2024
6df0b01
fix
Dec 26, 2024
2eb5093
fix
Dec 26, 2024
034d978
fix
Dec 26, 2024
d03631e
fix
Dec 26, 2024
18bae9d
tun back
Dec 26, 2024
f5a9e9c
fix
Dec 26, 2024
5869594
fix
Dec 26, 2024
ca09daf
fix
Dec 26, 2024
90f6956
debug
Dec 26, 2024
6c33af2
debug fix
Dec 26, 2024
ab399d5
debug fix 2
Dec 26, 2024
df2210f
fix
Dec 26, 2024
69cb8ce
test
Dec 26, 2024
05bd5a3
test
Dec 26, 2024
55217b7
fix
Dec 26, 2024
0ebd6f3
fix
Dec 26, 2024
40b7632
test
Dec 26, 2024
6e3e277
fix
Dec 26, 2024
44cc2e4
fix
Dec 26, 2024
fc67fc9
fix
Dec 26, 2024
841af02
fix
Dec 26, 2024
1234663
fix
Dec 26, 2024
1c8797d
fix
Dec 26, 2024
acc9570
fix
Dec 26, 2024
2b3668e
test
Dec 26, 2024
6342b66
fix
Dec 26, 2024
565bc77
tt
Dec 26, 2024
2fa30c3
ttt
Dec 26, 2024
ca42835
Merge branch 'main' of https://github.com/nookyo/qubership-integratio…
Dec 26, 2024
51fad08
test
Dec 26, 2024
068022a
test
Dec 26, 2024
8db75e6
fix main
Dec 26, 2024
a7ebff9
tt
Dec 26, 2024
f422933
version fix
Dec 26, 2024
81147b3
revert
Dec 26, 2024
350f9c1
revert 2
Dec 26, 2024
f86f598
rename step
Dec 26, 2024
40af7df
rename step
Dec 26, 2024
5466c2d
add
Dec 27, 2024
cb021e3
fix
Dec 27, 2024
2158ef7
fix
Dec 27, 2024
296aab3
fix path
Dec 27, 2024
3a3ec7e
fix path 2
Dec 27, 2024
627021c
rename
Dec 27, 2024
50ac533
fix path 2
Dec 27, 2024
5d20707
try to fix main work flow
Dec 27, 2024
2053a78
rename
Dec 27, 2024
0c91207
add new template
Dec 27, 2024
35e68c1
fix name/path
Dec 27, 2024
b4618b1
test
Dec 27, 2024
b4a5394
fix
Dec 27, 2024
1a5888f
try to publish into maven
Dec 27, 2024
3df6068
fix maven
Dec 27, 2024
9c3a603
remove extra space
Dec 27, 2024
a4bfd58
fix
Dec 28, 2024
4a64685
Update pom.xml
borislavr Dec 28, 2024
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
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Main Workflow

on:
workflow_dispatch:

jobs:
setup-tag:
uses: nookyo/workflow-hub/.github/workflows/docker-tag-template.yml@main

debug-docker-tag:
runs-on: ubuntu-latest
needs: setup-tag
steps:
- name: docker tags
run: echo "docker_tag = ${{ needs.setup-tag.outputs.docker_tag }}"

build-app:
needs: setup-tag
uses: nookyo/workflow-hub/.github/workflows/build-app.yml@main
with:
artifact_name: qip-engine-jar
artifact_path: target/qip-engine-*-exec.jar
maven_command: "clean package"
secrets:
maven_username: ${{ secrets.OSSRH_USERNAME }}
maven_password: ${{ secrets.OSSRH_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Test Workflow
on:
workflow_dispatch:

jobs:
call_first_workflow:
uses: nookyo/workflow-hub/.github/workflows/first-reusable.yml@main

call_second_workflow:
needs: call_first_workflow
uses: nookyo/workflow-hub/.github/workflows/second-reusable.yml@main
with:
example_input: ${{ needs.call_first_workflow.outputs.example_output }}
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM alpine/java:21-jdk

USER root
RUN ["chmod", "-R", "755", "/opt/java/openjdk"]
RUN apk add --no-cache curl
# FROM eclipse-temurin:21-jre-alpine
FROM alpine/java:21-jre

RUN chmod -R 755 /opt/java/openjdk && \
apk add --no-cache curl

USER 10001

WORKDIR /app

VOLUME /tmp

EXPOSE 8080

COPY --chown=10001:0 target/qip-engine-*-exec.jar /app/qip-engine.jar
CMD ["/opt/java/openjdk/bin/java", "-Xmx832m", "-Djava.security.egd=file:/dev/./urandom", "-Dfile.encoding=UTF-8", "-jar", "/app/qip-engine.jar"]

CMD ["/opt/java/openjdk/bin/java", "-Xmx832m", "-Djava.security.egd=file:/dev/./urandom", "-Dfile.encoding=UTF-8", "-jar", "/app/qip-engine.jar"]
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
<values-schema-json-plugin.version>1.1.1</values-schema-json-plugin.version>
</properties>



<distributionManagement>
<repository>
<id>ossrh</id>
<name>Central Maven Repository</name>
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
</repository>
</distributionManagement>

<dependencyManagement>
<dependencies>

Expand Down
Loading