mirror of
https://github.com/Hestia-Homes/insight.git
synced 2026-06-08 11:17:25 +00:00
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: Hubspot Data to S3
|
|
|
|
on:
|
|
# schedule:
|
|
# - cron: '30 17 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
hubspot_raw_to_s3:
|
|
name: HubSpot → S3 (Operations)
|
|
runs-on: [self-hosted, mist]
|
|
timeout-minutes: 4320
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
docker build -f .devcontainer/Dockerfile -t latest-image .
|
|
|
|
- name: Run raw HubSpot export
|
|
run: |
|
|
docker run \
|
|
-u $(id -u):$(id -g) \
|
|
-v ${{ github.workspace }}:/workspaces/insight \
|
|
-w /workspaces/insight/backend \
|
|
latest-image \
|
|
bash -c "
|
|
poetry install &&
|
|
poetry run python src/dashboard/scripts/hubspot_to_s3.py
|
|
"
|
|
|
|
hubspot_sales_forecast_to_s3:
|
|
name: HubSpot → S3 (sales forecast)
|
|
runs-on: [self-hosted, mist]
|
|
timeout-minutes: 720
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
docker build -f .devcontainer/Dockerfile -t latest-image .
|
|
|
|
- name: Run sales forecast export
|
|
run: |
|
|
docker run \
|
|
-u $(id -u):$(id -g) \
|
|
-v ${{ github.workspace }}:/workspaces/insight \
|
|
-w /workspaces/insight/backend \
|
|
latest-image \
|
|
bash -c "
|
|
poetry install &&
|
|
poetry run python src/dashboard/scripts/hubspot_to_s3_sales_forecast.py
|
|
"
|