未验证 提交 c871a4c1 编写于 作者: S Sebastian Florek 提交者: GitHub

Update cd-workflow.yml

上级 0a842411
......@@ -18,7 +18,7 @@ jobs:
NODE_OPTIONS: "--max-old-space-size=8192"
DOCKER_CLI_EXPERIMENTAL: enabled
TERM: xterm
steps:
- name: Setup Environment
uses: actions/checkout@v2
......@@ -82,8 +82,42 @@ jobs:
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.14.4
- name: Setup NodeJS
uses: actions/setup-node@v1.4.2
with:
node-version: 12.6.0
- name: Cache Node Modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
shell: bash
run: |
[ ! -d "node_modules" ] && npm ci || node aio/scripts/version.js && go mod download
- name: Docker Login
env:
DOCKER_USER: ${{ secrets.DOCKER_RELEASE_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_RELEASE_PASS }}
run: docker login -u $DOCKER_RELEASE_USER -p $DOCKER_RELEASE_PASS
- name: Push Image
run: echo "Push"
shell: bash
run: |
export GOPATH=$(go env GOPATH)/bin
npm run docker:push
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册