name: STAGING Deploy Images to GHCR

env:
  DOTNET_VERSION: '6.0.x'

on:
  workflow_dispatch:

jobs:
  push-app-image:
    runs-on: blacksmith-4vcpu-ubuntu-2404
    defaults:
      run:
        working-directory: './apps/api'
    steps:
      - name: 'Checkout GitHub Action'
        uses: actions/checkout@main

      - name: 'Login to GitHub Container Registry'
        uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
        with:
          registry: ghcr.io
          username: ${{github.actor}}
          password: ${{secrets.GITHUB_TOKEN}}

      - name: 'Build Inventory Image'
        run: |
          docker build . --tag ghcr.io/firecrawl/firecrawl-staging:latest
          docker push ghcr.io/firecrawl/firecrawl-staging:latest
