Skip to content

CD

CD #186

Workflow file for this run

name: CD
on:
workflow_run:
workflows:
- CI
branches:
- trunk
types:
- completed
jobs:
docker:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ github.repository }}/makigas:latest
cache-from: type=gha
cache-to: type=gha,mode=max