Skip to content

v4.12.2

v4.12.2 #22

Workflow file for this run

name: Docker Image CI
on:
push:
tags:
- v*
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install dependencies
run: yarn
- name: Run tests
run: yarn test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install dependencies
run: yarn
- name: Run linting
run: yarn lint
docker:
runs-on: ubuntu-latest
needs: [test,lint]
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
version: latest
- name: ghcr.io login
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Run Buildx
run: |
docker buildx build \
--pull \
--push \
--platform linux/amd64 \
--tag ghcr.io/nicolaschan/bell:${GITHUB_REF#refs/*/} \
--tag ghcr.io/nicolaschan/bell:latest .