Skip to content

Commit 4ddad25

Browse files
Bouttes HugoBouttes Hugo
authored andcommitted
ajout des .yml
1 parent 21bce10 commit 4ddad25

32 files changed

Lines changed: 161 additions & 554 deletions

.github/workflows/build.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
tags:
8+
- '*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Build with Maven
20+
run: mvn install --file pom.xml
21+
- name: Upload war
22+
uses: actions/upload-artifact@v2
23+
with:
24+
name: jar
25+
path: target/*.jar
26+
release:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout current branch
30+
uses: actions/checkout@v2
31+
- name: Get current version
32+
id: version
33+
run: echo "::set-output name=prop::$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)"
34+
- run: echo ${{steps.version.outputs.prop}}
35+
- name: Release snapshot
36+
id: release-snapshot
37+
uses: actions/create-release@latest
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
tag_name: ${{steps.version.outputs.prop}}
42+
release_name: Release ${{steps.version.outputs.prop}}
43+
draft: false
44+
prerelease: false
45+
docker:
46+
needs: build
47+
runs-on: ubuntu-latest
48+
environment: ci
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: Download build
52+
id: download
53+
uses: actions/download-artifact@v2
54+
with:
55+
name: jar
56+
path: target/
57+
- name: Get current version
58+
id: version
59+
run: echo "::set-output name=prop::$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)"
60+
- run: echo ${{steps.version.outputs.prop}}
61+
- name: Publish to Registry
62+
uses: elgohr/Publish-Docker-Github-Action@master
63+
with:
64+
name: ddecrulle/knowledge-back-office
65+
username: ${{ secrets.DOCKERHUB_USERNAME }}
66+
password: ${{ secrets.DOCKERHUB_TOKEN }}
67+
tags: ${{steps.version.outputs.prop}}

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Compiled class file
2+
*.class
3+
/target
4+
# IDEA
5+
*.iml
6+
.idea/
7+
8+
# Log file
9+
*.log
10+
11+
# BlueJ files
12+
*.ctxt
13+
14+
# Mobile Tools for Java (J2ME)
15+
.mtj.tmp/
16+
17+
# Package Files #
18+
*.jar
19+
*.war
20+
*.nar
21+
*.ear
22+
*.zip
23+
*.tar.gz
24+
*.rar
25+
26+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
27+
hs_err_pid*
28+
.DS_Store

demo/.gitignore

Lines changed: 0 additions & 33 deletions
This file was deleted.
-57.4 KB
Binary file not shown.

demo/.mvn/wrapper/maven-wrapper.properties

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

0 commit comments

Comments
 (0)