Skip to content

Commit 9c7c634

Browse files
committed
Merge branch 'master' into mainnet
2 parents 2cc3559 + c77d254 commit 9c7c634

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
FROM adoptopenjdk/openjdk11:jdk-11.0.12_7-alpine as ECLAIR_CORE_BUILD
33

44
# this is necessary to extract the eclair-core version that we need to clone for the build
5-
COPY ./app/build.gradle .
6-
RUN cat build.gradle | grep "def eclair_version" | cut -d '"' -f2 | sed 's/^/v/' > eclair-core-version.txt
5+
COPY ./buildSrc/src/main/kotlin/Versions.kt .
6+
RUN cat Versions.kt | grep "const val eclair =" | cut -d '"' -f 2 > eclair-core-version.txt
77

88
ARG MAVEN_VERSION=3.6.3
99
ARG USER_HOME_DIR="/root"
@@ -24,7 +24,7 @@ ENV MAVEN_HOME /usr/share/maven
2424
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
2525

2626
# clone eclair at the specified branch
27-
RUN git clone https://github.com/ACINQ/eclair -b $(cat eclair-core-version.txt)
27+
RUN git clone https://github.com/ACINQ/eclair -b v$(cat eclair-core-version.txt)
2828

2929
# build eclair-core
3030
RUN cd eclair && mvn install -pl eclair-core -am -Dmaven.test.skip=true
@@ -74,7 +74,7 @@ RUN git clone https://github.com/ACINQ/Tor_Onion_Proxy_Library && \
7474
./gradlew :android:build && \
7575
./gradlew :android:publishToMaven
7676

77-
# copy eclair-core dependendency
77+
# copy eclair-core dependency
7878
COPY --from=ECLAIR_CORE_BUILD /root/.m2/repository/fr/acinq/eclair /root/.m2/repository/fr/acinq/eclair
7979
# copy phoenix project over to docker image
8080
COPY . /home/ubuntu/phoenix

phoenix-legacy/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ android {
2929
applicationId = "fr.acinq.phoenix.mainnet"
3030
minSdk = 24
3131
targetSdk = 30
32-
versionCode = 33
33-
versionName = "1.4.18"
32+
versionCode = 34
33+
versionName = gitCommitHash()
3434
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3535
}
3636
buildTypes {

0 commit comments

Comments
 (0)