Skip to content

chore(release): 1.7.3 #54

chore(release): 1.7.3

chore(release): 1.7.3 #54

Workflow file for this run

name: Docker Image CI
on:
push:
branches: ['main']
tags: ['v*']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: pnpm cache for Docker
uses: actions/cache@v4
with:
path: pnpm-build-cache
key: ${{ runner.os }}-pnpm-build-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Cache injection
uses: reproducible-containers/buildkit-cache-dance@v2
with:
cache-source: pnpm-build-cache
cache-target: /pnpm/store
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max