name: Deploy

on:
  push:
    branches: [main]
    paths-ignore:
      - "docs/**"
      - "**/*.md"

concurrency:
  group: deploy-${{ github.ref }}
  cancel-in-progress: true

permissions:
  contents: read
  deployments: write

env:
  REGISTRY: registry.example.invalid
  IMAGE: registry.example.invalid/example-org/web

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment:
      name: production
      url: https://app.example.invalid
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - run: echo "deploying $IMAGE to ${{ vars.EXAMPLE_CLUSTER }}"
