This repository was archived by the owner on Oct 16, 2023. It is now read-only.
forked from vivliostyle/vivliostyle-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.38 KB
/
test.yml
File metadata and controls
51 lines (49 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: test
on:
- push
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/checkout@v2
- name: Install external library
run: sudo apt-get update && sudo apt-get install -y ghostscript poppler-utils
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: yarn install
- run: yarn test
build-and-push-image:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- uses: actions/checkout@v2
- name: Output current package version
id: package
run: |
VERSION=$(cat package.json | jq -r '.version')
echo "::set-output name=version::$VERSION"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
- name: Build container
uses: docker/build-push-action@v2
with:
context: .
push: true
build-args: |
VS_CLI_VERSION=${{ steps.package.outputs.version }}
tags: localhost:5000/vivliostyle/cli:latest
- name: Inspect
run: |
docker buildx imagetools inspect localhost:5000/vivliostyle/cli:latest