Reconfiguration of the build algorithm
This commit is contained in:
parent
9bf889fa15
commit
8f92f77d5a
31
.travis.yml
31
.travis.yml
@ -10,24 +10,19 @@ notifications:
|
||||
- "info@valentineus.link"
|
||||
|
||||
env:
|
||||
- "IMAGE=./default/latest"
|
||||
- "IMAGE=./default/1.7"
|
||||
- "IMAGE=./default/1.6"
|
||||
- "IMAGE=./default/1.5"
|
||||
- "IMAGE=./default/1.4"
|
||||
- "IMAGE=./build/latest"
|
||||
- "IMAGE=./build/1.7"
|
||||
- "IMAGE=./build/1.6"
|
||||
- "IMAGE=./build/1.5"
|
||||
- "IMAGE=./build/1.4"
|
||||
- TAG="latest" RELEASE="latest" DIRECTORY="./default/latest"
|
||||
- TAG="1.7" RELEASE="1.7" DIRECTORY="./default/release"
|
||||
- TAG="1.6" RELEASE="1.6" DIRECTORY="./default/release"
|
||||
- TAG="1.5" RELEASE="1.5" DIRECTORY="./default/release"
|
||||
- TAG="1.4" RELEASE="1.4" DIRECTORY="./default/release"
|
||||
- TAG="build" RELEASE="latest" DIRECTORY="./build/latest"
|
||||
- TAG="build-1.7" RELEASE="1.7" DIRECTORY="./build/release"
|
||||
- TAG="build-1.6" RELEASE="1.6" DIRECTORY="./build/release"
|
||||
- TAG="build-1.5" RELEASE="1.5" DIRECTORY="./build/release"
|
||||
- TAG="build-1.4" RELEASE="1.4" DIRECTORY="./build/release"
|
||||
|
||||
script:
|
||||
- docker build --tag "${TRAVIS_REPO_SLUG}" "${IMAGE}"
|
||||
- docker build --build-arg RELEASE="${RELEASE}" --tag "${TAG}" "${DIRECTORY}"
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: deploy
|
||||
deploy:
|
||||
provider: script
|
||||
script:
|
||||
- "curl -H 'Content-Type: application/json' --data '{\"build\":true}' -X POST 'https://registry.hub.docker.com/u/valentineus/meteor/trigger/${TOKEN}/'"
|
||||
after_success:
|
||||
- "curl -H 'Content-Type: application/json' --data '{\"docker_tag\":\"${TAG}\"}' -X POST 'https://registry.hub.docker.com/u/valentineus/meteor/trigger/${TOKEN}/'"
|
||||
|
@ -1,26 +0,0 @@
|
||||
FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.5"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
&& find /tmp -type f -exec rm {} \; \
|
||||
&& find /var/cache -type f -exec rm {} \; \
|
||||
&& find /var/lib/apt/lists -type f -exec rm {} \; \
|
||||
&& find /var/log -type f -exec rm {} \; \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -1,26 +0,0 @@
|
||||
FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.6"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
&& find /tmp -type f -exec rm {} \; \
|
||||
&& find /var/cache -type f -exec rm {} \; \
|
||||
&& find /var/lib/apt/lists -type f -exec rm {} \; \
|
||||
&& find /var/log -type f -exec rm {} \; \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -1,26 +0,0 @@
|
||||
FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.7"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
&& find /tmp -type f -exec rm {} \; \
|
||||
&& find /var/cache -type f -exec rm {} \; \
|
||||
&& find /var/lib/apt/lists -type f -exec rm {} \; \
|
||||
&& find /var/log -type f -exec rm {} \; \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -2,16 +2,11 @@ FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
build-essential ca-certificates curl git openssl \
|
||||
&& curl https://install.meteor.com | sh \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
@ -22,4 +17,5 @@ RUN set -ex \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
WORKDIR "/workspace"
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -2,18 +2,14 @@ FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.4"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
ARG release
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
build-essential ca-certificates curl git openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${release}/g' | sh \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
&& find /tmp -type f -exec rm {} \; \
|
||||
@ -23,4 +19,5 @@ RUN set -ex \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
WORKDIR "/workspace"
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -1,26 +0,0 @@
|
||||
FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.5"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
&& apt-get --purge --yes remove curl \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
&& find /tmp -type f -exec rm {} \; \
|
||||
&& find /var/cache -type f -exec rm {} \; \
|
||||
&& find /var/lib/apt/lists -type f -exec rm {} \; \
|
||||
&& find /var/log -type f -exec rm {} \; \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -1,26 +0,0 @@
|
||||
FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.6"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
&& apt-get --purge --yes remove curl \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
&& find /tmp -type f -exec rm {} \; \
|
||||
&& find /var/cache -type f -exec rm {} \; \
|
||||
&& find /var/lib/apt/lists -type f -exec rm {} \; \
|
||||
&& find /var/log -type f -exec rm {} \; \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -1,26 +0,0 @@
|
||||
FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.7"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
&& apt-get --purge --yes remove curl \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
&& apt-get clean \
|
||||
&& find /tmp -type f -exec rm {} \; \
|
||||
&& find /var/cache -type f -exec rm {} \; \
|
||||
&& find /var/lib/apt/lists -type f -exec rm {} \; \
|
||||
&& find /var/log -type f -exec rm {} \; \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -2,15 +2,11 @@ FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
ca-certificates curl git openssl \
|
||||
&& curl https://install.meteor.com | sh \
|
||||
&& apt-get --purge --yes remove curl \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
@ -22,4 +18,5 @@ RUN set -ex \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
WORKDIR "/workspace"
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
@ -2,16 +2,13 @@ FROM ubuntu:rolling
|
||||
LABEL maintainer="info@valentineus.link"
|
||||
|
||||
ENV METEOR_ALLOW_SUPERUSER="true"
|
||||
ENV RELEASE="1.4"
|
||||
WORKDIR "/workspace"
|
||||
|
||||
ARG release
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get --no-install-recommends --no-install-suggests --yes install \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
openssl \
|
||||
ca-certificates curl git openssl \
|
||||
&& curl https://install.meteor.com | sed 's/^RELEASE=.*/RELEASE=${RELEASE}/g' | sh \
|
||||
&& apt-get --purge --yes remove curl \
|
||||
&& apt-get --purge --yes autoremove \
|
||||
@ -23,4 +20,5 @@ RUN set -ex \
|
||||
&& find /var/tmp -type f -exec rm {} \;
|
||||
|
||||
EXPOSE 3000
|
||||
WORKDIR "/workspace"
|
||||
CMD [ "/usr/local/bin/meteor", "run" ]
|
Loading…
x
Reference in New Issue
Block a user