Skip to content

chore(deps-dev): bump globals from 15.15.0 to 16.0.0 in /apps/web (#69) #89

chore(deps-dev): bump globals from 15.15.0 to 16.0.0 in /apps/web (#69)

chore(deps-dev): bump globals from 15.15.0 to 16.0.0 in /apps/web (#69) #89

Workflow file for this run

name: Build & publish images to GHCR
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'apps/**'
- 'packages/**'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./apps/web/Dockerfile
image: ghcr.io/${{ github.repository_owner }}/web
- dockerfile: ./apps/api/Dockerfile
image: ghcr.io/${{ github.repository_owner }}/api
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_PACKAGE_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max