create version_static.txt on build
This commit is contained in:
parent
4e17fac8b7
commit
06aabdf60b
|
@ -4,6 +4,10 @@ EXPOSE 9000/tcp
|
||||||
ENV SCRIPT_ROOT=/opt/tt-rss
|
ENV SCRIPT_ROOT=/opt/tt-rss
|
||||||
ENV SRC_DIR=/src/tt-rss/
|
ENV SRC_DIR=/src/tt-rss/
|
||||||
|
|
||||||
|
ARG BUILD_TIMESTAMP
|
||||||
|
ARG CI_COMMIT_BRANCH
|
||||||
|
ARG CI_COMMIT_SHORT_SHA
|
||||||
|
|
||||||
RUN apk add --no-cache dcron php81 php81-fpm php81-phar php81-sockets \
|
RUN apk add --no-cache dcron php81 php81-fpm php81-phar php81-sockets \
|
||||||
php81-pdo php81-gd php81-pgsql php81-pdo_pgsql php81-xmlwriter \
|
php81-pdo php81-gd php81-pgsql php81-pdo_pgsql php81-xmlwriter \
|
||||||
php81-mbstring php81-intl php81-xml php81-curl php81-simplexml \
|
php81-mbstring php81-intl php81-xml php81-curl php81-simplexml \
|
||||||
|
@ -29,6 +33,8 @@ ADD config.docker.php ${SCRIPT_ROOT}
|
||||||
|
|
||||||
COPY --from=app-src . ${SRC_DIR}
|
COPY --from=app-src . ${SRC_DIR}
|
||||||
|
|
||||||
|
RUN [ ! -z ${BUILD_TIMESTAMP} ] && echo ${BUILD_TIMESTAMP}-${CI_COMMIT_BRANCH}-${CI_COMMIT_SHORT_SHA} | tee ${SRC_DIR}/version_static.txt
|
||||||
|
|
||||||
ARG ORIGIN_REPO_XACCEL=https://git.tt-rss.org/fox/ttrss-nginx-xaccel.git
|
ARG ORIGIN_REPO_XACCEL=https://git.tt-rss.org/fox/ttrss-nginx-xaccel.git
|
||||||
|
|
||||||
RUN git clone --depth=1 ${ORIGIN_REPO_XACCEL} ${SRC_DIR}/plugins.local/nginx_xaccel
|
RUN git clone --depth=1 ${ORIGIN_REPO_XACCEL} ${SRC_DIR}/plugins.local/nginx_xaccel
|
||||||
|
|
Loading…
Reference in New Issue