Skip to content

Commit 0d99ace

Browse files
author
Derek Smart
committed
version 0.1.0
1 parent f39701f commit 0d99ace

File tree

6 files changed

+73
-2
lines changed

6 files changed

+73
-2
lines changed

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
#set DOCKERUSER as Environment Variable
6+
#export DOCKERUSER="dockeruser"
7+
IMAGE=daf
8+
9+
docker build -t ${DOCKERUSER}/$IMAGE:latest .

delphix.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ environments:
3030
branch: origin/feature/unit-tests
3131
datapod: Develop
3232
when:
33-
- push: datapod.refresh
33+
- not-push: datapod.refresh
3434
- build-failure: datapod.undo

pom.xml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@
5757
<build>
5858
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
5959
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
60+
<resources>
61+
<resource>
62+
<directory>src/main/resources</directory>
63+
<filtering>true</filtering>
64+
<includes>
65+
<include>**/VERSION</include>
66+
</includes>
67+
</resource>
68+
<resource>
69+
<directory>src/main/resources</directory>
70+
<filtering>false</filtering>
71+
<excludes>
72+
<exclude>**/VERSION</exclude>
73+
</excludes>
74+
</resource>
75+
</resources>
6076
<plugins>
6177
<plugin>
6278
<artifactId>kotlin-maven-plugin</artifactId>
@@ -75,7 +91,25 @@
7591
</execution>
7692
</executions>
7793
</plugin>
78-
<plugin>
94+
<plugin>
95+
<artifactId>maven-antrun-plugin</artifactId>
96+
<version>1.4</version>
97+
<executions>
98+
<execution>
99+
<phase>process-resources</phase>
100+
<configuration>
101+
<tasks>
102+
<copy file="${project.build.outputDirectory}/VERSION"
103+
toFile="./VERSION" overwrite="true" />
104+
</tasks>
105+
</configuration>
106+
<goals>
107+
<goal>run</goal>
108+
</goals>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
<plugin>
79113
<groupId>org.jacoco</groupId>
80114
<artifactId>jacoco-maven-plugin</artifactId>
81115
<version>${jacoco.version}</version>

release.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
#set DOCKERUSER as Environment Variable
6+
IMAGE=daf
7+
8+
# ensure we're up to date
9+
git pull
10+
11+
version=`cat VERSION`
12+
13+
# run build
14+
./build.sh
15+
16+
# tag it
17+
git add -A
18+
git commit -m "version $version"
19+
git tag -a "$version" -m "version $version"
20+
git push
21+
git push --tags
22+
docker tag ${DOCKERUSER}/$IMAGE:latest ${DOCKERUSER}/$IMAGE:$version
23+
24+
# push it
25+
docker push ${DOCKERUSER}/$IMAGE:latest
26+
docker push ${DOCKERUSER}/$IMAGE:$version

src/main/resources/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
${project.version}

0 commit comments

Comments
 (0)