Skip to content

feat: update database references and improve UI component styling for… #1

feat: update database references and improve UI component styling for…

feat: update database references and improve UI component styling for… #1

Workflow file for this run

name: Release Docker Images
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: read
packages: write
concurrency:
group: release-docker-${{ github.ref }}
cancel-in-progress: false
jobs:
publish-images:
name: Publish ${{ matrix.image_name }} image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image_name: backend
dockerfile: Dockerfile.backend
- image_name: frontend
dockerfile: Dockerfile.frontend
steps:
- name: Check out 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: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Compute image name
id: image
shell: bash
run: |
repository="$(echo "${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')"
echo "repository=${repository}" >> "${GITHUB_OUTPUT}"
echo "image=ghcr.io/${repository}-${{ matrix.image_name }}" >> "${GITHUB_OUTPUT}"
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ steps.image.outputs.image }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=ref,event=tag
type=raw,value=latest,enable={{is_default_branch}}
type=sha,prefix=sha-
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ matrix.image_name }}
cache-to: type=gha,scope=${{ matrix.image_name }},mode=max