chore(docker) ci: update GitHub action to use redrun (#366)

This commit is contained in:
Timo Knapp 2022-01-08 19:44:51 +01:00 committed by GitHub
parent c7371d9c3a
commit c32ba39f43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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