Create a merged branch to deploy
这个提交包含在:
当前提交
7b8dea218f
@ -7,11 +7,12 @@ RUN apk update \
|
||||
&& update-ca-certificates
|
||||
|
||||
# Download TileBoard
|
||||
RUN wget -q -O release.zip "%RELEASE_URL%" \
|
||||
ARG RELEASE_URL
|
||||
RUN wget -q -O release.zip "${RELEASE_URL:-%RELEASE_URL%}" \
|
||||
&& unzip release.zip -d /tileboard/ \
|
||||
&& rm release.zip
|
||||
|
||||
# Start Server
|
||||
WORKDIR /tileboard
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT python3 -m http.server
|
||||
ENTRYPOINT python3 -m http.server
|
||||
|
@ -18,6 +18,7 @@ RUN mkdir /tileboard-source \
|
||||
&& mkdir /tileboard \
|
||||
&& ln -s /tileboard build \
|
||||
&& yarn install \
|
||||
&& npm install --global node-sass \
|
||||
&& yarn run build
|
||||
|
||||
# Start Server
|
||||
@ -37,4 +38,4 @@ COPY --from=dev /tileboard /tileboard
|
||||
# Start Server
|
||||
WORKDIR /tileboard
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT python3 -m http.server
|
||||
ENTRYPOINT python3 -m http.server
|
||||
|
11
build.sh
11
build.sh
@ -33,11 +33,6 @@ echo "Docker repository: $docker_repo."
|
||||
LATEST_RELEASE=`getVersionFromLatestRelease $source_repo`
|
||||
echo "Latest release is: $LATEST_RELEASE."
|
||||
|
||||
if docker_tag_exists $docker_repo $LATEST_RELEASE; then
|
||||
echo "Nothing to do. Latest release tag already exists."
|
||||
exit 78 # drone.io exit code to stop but success the pipeline
|
||||
fi
|
||||
|
||||
SEMVER=( ${LATEST_RELEASE//./ } )
|
||||
MAJOR=${SEMVER[0]}
|
||||
MINOR=${SEMVER[0]}.${SEMVER[1]}
|
||||
@ -47,6 +42,12 @@ echo "latest,$MAJOR,$MINOR,$PATCH" > .tags
|
||||
|
||||
RELEASE_URL=`getDownloadUrl`
|
||||
echo "URL of release is: $RELEASE_URL."
|
||||
echo "::set-output name=release_url::$RELEASE_URL"
|
||||
|
||||
if docker_tag_exists $docker_repo $LATEST_RELEASE; then
|
||||
echo "Nothing to do. Latest release tag already exists."
|
||||
exit 78 # drone.io exit code to stop but success the pipeline
|
||||
fi
|
||||
|
||||
echo "Writing release URL into Dockerfile..."
|
||||
sed -i "s|%RELEASE_URL%|$RELEASE_URL|g" ./Dockerfile
|
||||
|
在新工单中引用
屏蔽一个用户