Skip to content

Commit

Permalink
🔥 更换构建源
Browse files Browse the repository at this point in the history
  • Loading branch information
xkrfer committed May 1, 2022
1 parent 4c100e2 commit deebdde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: Publish Docker image
on:
push:
branches:
- main
tags:
- v*

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ lerna-debug.log*
!.vscode/launch.json
!.vscode/extensions.json

/docker/push/gorush
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ WORKDIR /

RUN git clone https://github.com/appleboy/gorush.git --depth=1 \
&& go env -w GO111MODULE=on \
&& go env -w GOPROXY=https://goproxy.cn,direct \
&& cd gorush \
&& go install \
&& go build -o ./bin/gorush
Expand All @@ -15,7 +14,7 @@ WORKDIR /app

COPY package.json .

RUN npm install --registry=https://registry.npmmirror.com
RUN npm install

COPY . .

Expand All @@ -33,8 +32,7 @@ COPY --from=gorush /gorush/bin/gorush push/gorush

COPY package.json .

RUN npm config set registry https://registry.npmmirror.com \
&& npm install --production \
RUN npm install --production \
&& npm install -g pm2 \
&& apk update \
&& apk upgrade \
Expand Down

0 comments on commit deebdde

Please sign in to comment.