This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +74
-61
lines changed Expand file tree Collapse file tree 7 files changed +74
-61
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Latest Release
2
+
3
+ on : push
4
+
5
+ jobs :
6
+ Build_Docker_Image_on_Push :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ -
10
+ uses : actions/checkout@v1
11
+ -
12
+ name : Set up JDK
13
+ uses : actions/setup-java@v1
14
+ with :
15
+ java-version : ' 11.0.8'
16
+ architecture : x64
17
+ -
18
+ name : Run all Tests
19
+ run : mvn clean test -f pom.xml
20
+ -
21
+ name : build image with docker
22
+ run : mvn spring-boot:build-image -f pom.xml -P prod
23
+ -
24
+ name : Log into DockerHub Registry
25
+ run : echo "${{ secrets.DOCKER_PW }}" | docker login -u filefighter --password-stdin
26
+ -
27
+ name : Push image to DockerHub Registry
28
+ run : |
29
+ IMAGE_ID=$(docker images rest -q)
30
+ VERSION=latest
31
+ docker tag $IMAGE_ID filefighter/rest:$VERSION
32
+ docker push filefighter/rest:$VERSION
Original file line number Diff line number Diff line change
1
+ name : Stable Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*.*.*'
7
+ jobs :
8
+ Build_Docker_Image_on_new_Tag :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ -
12
+ uses : actions/checkout@v1
13
+ -
14
+ name : Set up JDK
15
+ uses : actions/setup-java@v1
16
+ with :
17
+ java-version : ' 11.0.8'
18
+ architecture : x64
19
+ -
20
+ name : run all tests
21
+ run : mvn clean test -f pom.xml
22
+ -
23
+ name : build image with docker
24
+ run : mvn spring-boot:build-image -f pom.xml -P prod
25
+ -
26
+ name : Log into DockerHub Registry
27
+ run : echo "${{ secrets.DOCKER_PW }}" | docker login -u filefighter --password-stdin
28
+ -
29
+ name : generate image tag
30
+ id : vars
31
+ run : echo ::set-output name=tag::${GITHUB_REF#refs/*/}
32
+ -
33
+ name : Push image to DockerHub Registry
34
+ run : |
35
+ IMAGE_ID=$(docker images rest -q)
36
+ VERSION=${{ steps.vars.outputs.tag }}
37
+ docker tag $IMAGE_ID filefighter/rest:$VERSION
38
+ docker push filefighter/rest:$VERSION
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<component name =" ProjectRunConfigurationManager" >
2
- <configuration default =" false" name =" TESTS " type =" MavenRunConfiguration" factoryName =" Maven" >
2
+ <configuration default =" false" name =" Run Tests with Coverage " type =" MavenRunConfiguration" factoryName =" Maven" >
3
3
<MavenSettings >
4
4
<option name =" myGeneralSettings" />
5
5
<option name =" myRunnerSettings" />
Original file line number Diff line number Diff line change 1
1
# RestApi
2
2
Backend REST API for FileFighter </br >
3
- ![ Tests] ( https://github.com/FileFighter/RestApi/workflows/Tests/badge.svg ) ![ Deploy Docker Image] ( https://github.com/FileFighter/RestApi/workflows/Deploy%20Docker%20Image/badge.svg )
3
+ ![ Latest Release] ( https://github.com/FileFighter/RestApi/workflows/Latest%20Release/badge.svg )
4
+ ![ Stable Release] ( https://github.com/FileFighter/RestApi/workflows/Stable%20Release/badge.svg )
4
5
[ ![ codecov] ( https://codecov.io/gh/FileFighter/RestApi/branch/master/graph/badge.svg )] ( https://codecov.io/gh/FileFighter/RestApi )
Original file line number Diff line number Diff line change 10
10
</parent >
11
11
<groupId >de.filefighter</groupId >
12
12
<artifactId >rest</artifactId >
13
- <version >0.0.1-SNAPSHOT </version >
13
+ <version >0.0.1</version >
14
14
<name >rest</name >
15
15
<description >RestApi</description >
16
16
You can’t perform that action at this time.
0 commit comments