Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 999c446

Browse files
committed
Update Version to 0.0.1
1 parent 973c044 commit 999c446

File tree

7 files changed

+74
-61
lines changed

7 files changed

+74
-61
lines changed

.github/workflows/deploydocker.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

.github/workflows/tests.yml

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

.run/TESTS.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<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">
33
<MavenSettings>
44
<option name="myGeneralSettings" />
55
<option name="myRunnerSettings" />

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# RestApi
22
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)
45
[![codecov](https://codecov.io/gh/FileFighter/RestApi/branch/master/graph/badge.svg)](https://codecov.io/gh/FileFighter/RestApi)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>de.filefighter</groupId>
1212
<artifactId>rest</artifactId>
13-
<version>0.0.1-SNAPSHOT</version>
13+
<version>0.0.1</version>
1414
<name>rest</name>
1515
<description>RestApi</description>
1616

0 commit comments

Comments
 (0)