Skip to content

Deploy

Deploy #9

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed
permissions:
contents: read
packages: write
jobs:
deploy:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build and push Docker image to GHCR
env:
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: ghcr.io/${{ github.repository }}
IMAGE_TAG: ${{ github.event.workflow_run.head_sha }}
run: |
echo "Stub deploy step for ${IMAGE_NAME}:${IMAGE_TAG}"
echo "Add GHCR push or external deployment integration here."
- name: Trigger production deployment
run: echo "Deploy placeholder"