mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
chore(docker) ci: update GitHub action to use redrun (#366)
This commit is contained in:
parent
c7371d9c3a
commit
c32ba39f43
1 changed files with 12 additions and 12 deletions
24
.github/workflows/docker.yml
vendored
24
.github/workflows/docker.yml
vendored
|
|
@ -9,21 +9,21 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Use Node.js 14.x
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16.x
|
||||
- name: Install Redrun
|
||||
run: npm i redrun -g
|
||||
- name: NPM Install
|
||||
run: |
|
||||
npm install
|
||||
- name: NPM Lint
|
||||
run: |
|
||||
npm run lint
|
||||
- name: NPM Build
|
||||
id: npm-build
|
||||
run: npm install
|
||||
- name: Lint
|
||||
run: redrun lint
|
||||
- name: Build
|
||||
id: build
|
||||
run: >
|
||||
npm run build
|
||||
|
||||
redrun build
|
||||
|
||||
echo "::set-output name=version::$(grep '"version":' package.json -m1 | cut -d\" -f4)"
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
push: true
|
||||
tags: |
|
||||
coderaiser/cloudcmd:latest
|
||||
coderaiser/cloudcmd:${{ steps.npm-build.outputs.version }}
|
||||
coderaiser/cloudcmd:${{ steps.build.outputs.version }}
|
||||
- name: Build and push alpine-image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
|
|
@ -53,4 +53,4 @@ jobs:
|
|||
push: true
|
||||
tags: |
|
||||
coderaiser/cloudcmd:latest-alpine
|
||||
coderaiser/cloudcmd:${{ steps.npm-build.outputs.version }}-alpine
|
||||
coderaiser/cloudcmd:${{ steps.build.outputs.version }}-alpine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue