Преглед изворни кода

misc: remove publishing docker build step

Nicolas Giard пре 6 година
родитељ
комит
a1c3d6339c
1 измењених фајлова са 1 додато и 33 уклоњено
  1. 1 33
      dev/build/Dockerfile

+ 1 - 33
dev/build/Dockerfile

@@ -5,8 +5,7 @@ FROM node:10.15-alpine AS assets
 
 RUN apk update && \
     apk add yarn g++ make python --no-cache && \
-    rm -rf /var/cache/apk/* && \
-    mkdir -p /wiki
+    rm -rf /var/cache/apk/*
 
 WORKDIR /wiki
 
@@ -22,37 +21,6 @@ RUN yarn build
 RUN rm -rf /wiki/node_modules
 RUN yarn --production
 
-# =========================
-# --- Publish to GitHub ---
-# =========================
-
-FROM alpine AS publishing
-
-RUN apk --update add git jq openssh hub tar && \
-    rm -rf /var/cache/apk/*
-
-WORKDIR /wiki
-
-COPY --from=assets /wiki/assets ./assets
-COPY --from=assets /wiki/node_modules ./node_modules
-COPY ./server ./server
-COPY --from=assets /wiki/server/views ./server/views
-COPY ./config.sample.yml ./config.sample.yml
-COPY ./package.json ./package.json
-COPY ./LICENSE ./LICENSE
-
-RUN BUILDNUM=$(jq -r '.version' package.json)
-
-WORKDIR /
-
-RUN tar -czf wiki-js.tar.gz /wiki
-RUN mv wiki-js.tar.gz /wiki
-
-WORKDIR /wiki
-
-RUN hub init -g "Requarks/wiki"
-RUN hub create -p -a wiki-js.tar.gz -m "See [CHANGELOG](https://github.com/Requarks/wiki/blob/master/CHANGELOG.md) for release notes" -t $CF_REVISION $BUILDNUM
-
 # ===============
 # --- Release ---
 # ===============