name: Build & Deploy (prod)

"on":
  push:
    branches:
      - main

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Build, push, bump infra
        uses: https://git.rlugo.dev/resuely/ci-actions/.github/actions/build-push-bump@main
        with:
          registry: git.rlugo.dev
          image: git.rlugo.dev/resuely/landing
          infraRepo: git.rlugo.dev/resuely/infra.git
          stackEnvPath: stacks/resuely/prod/stack.env
          stackEnvKey: LANDING_IMAGE_TAG
          registryUsername: ${{ secrets.REGISTRY_USERNAME }}
          registryToken: ${{ secrets.REGISTRY_TOKEN }}
          infraPushToken: ${{ secrets.INFRA_PUSH_TOKEN }}
