Create data
directory by copying sample-config
:
cp -r component_config/sample-config data
Then, in data/config.json
, replace <YOUR_APIFY_API_TOKEN>
with your Apify API token. Finally, run the component:
KBC_DATADIR=data python src/component.py
The recommended way to release and deploy a new version is via GitHub Releases:
- Go to the GitHub Releases page for this repository.
- Click "Draft a new release" and fill in the version, description, and changelog.
- Changelog can be generated using "Generate release notes" button.
- Publish the release.
Publishing a release will automatically trigger deployment via GitHub Actions. No manual deployment from the terminal is required in most cases.
If you need to deploy manually, set the following environment variables:
KBC_DEVELOPERPORTAL_APP
KBC_DEVELOPERPORTAL_USERNAME
KBC_DEVELOPERPORTAL_VENDOR
KBC_DEVELOPERPORTAL_PASSWORD
You'll find the values in repo's secrets and variables.
export APP_IMAGE=keboola.component
export GITHUB_TAG=0.0.4
docker build -t $APP_IMAGE:latest .
# Deploy the container
sh deploy.sh
# Update compontent's configs and descriptions
sh scripts/developer_portal/update_properties.sh
Deploying from terminal should not be needed. To deploy a new version, we need to push a new tag to the default branch or publish a release on GitHub, and GitHub Actions will handle the deployment.