Verified Commit 0e8f6d24 authored by kPherox's avatar kPherox
Browse files

Create OTP_VERSION file by `mix release`

parent d37a1029
......@@ -12,8 +12,6 @@ RUN apk add git gcc g++ musl-dev make &&\
mkdir release &&\
mix release --path release
RUN echo "${OTP_VERSION}" > release/OTP_VERSION
FROM alpine:3.11
ARG BUILD_DATE
......
......@@ -37,12 +37,21 @@ def project do
pleroma: [
include_executables_for: [:unix],
applications: [ex_syslogger: :load, syslog: :load],
steps: [:assemble, &copy_files/1, &copy_nginx_config/1]
steps: [:assemble, &put_files/1, &copy_files/1, &copy_nginx_config/1]
]
]
]
end
def put_files(%{path: target_path} = release) do
File.write!(
Path.join([target_path, "OTP_VERSION"]),
Pleroma.OTPVersion.version()
)
release
end
def copy_files(%{path: target_path} = release) do
File.cp_r!("./rel/files", target_path)
release
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment