Skip to content

chore(deps): update jest monorepo to v29 #1495

chore(deps): update jest monorepo to v29

chore(deps): update jest monorepo to v29 #1495

Workflow file for this run

name: Build Docker
on:
push:
jobs:
build:
name: Build app
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
run: yarn install
- name: Unit tests
run: yarn test
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
run: |
docker buildx build \
--platform linux/amd64 \
--output "type=image,push=true" \
--cache-from=type=registry,ref=n1ru4l/character-overlay:build-cache-linux-amd64 \
--cache-to=type=registry,ref=n1ru4l/character-overlay:build-cache-linux-amd64,mode=max \
--build-arg APP_VERSION=${{ github.sha }} \
-t "n1ru4l/character-overlay:${{ github.sha }}" \
.
- name: Create commit comment
uses: peter-evans/commit-comment@v1
with:
body: |
**This image has been published to DockerHub.** 🐋
You can easily try this build out locally with Docker.
`docker run -p 4000:4000 n1ru4l/character-overlay:${{ github.sha }}`