Skip to content

docs: rebalance homepage feature copy #35

docs: rebalance homepage feature copy

docs: rebalance homepage feature copy #35

Workflow file for this run

name: Publish Docker Image
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
inputs:
version:
description: 'Docker image version tag (for example, v0.5.3)'
required: true
type: string
permissions:
contents: read
packages: write
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: dotcraft
dockerfile: docker/dotcraft/Dockerfile
- image: oratorio
dockerfile: docker/oratorio/Dockerfile
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/dotharness/${{ matrix.image }}
tags: |
type=ref,event=tag
type=raw,value=${{ inputs.version }},enable=${{ github.event_name == 'workflow_dispatch' }}
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max