Run docs locally: dagger call --source=. server-docs up --ports 8080:80
Build the docs/widget site image and publish to ECR: dagger call --source=. publish --sites="docs" --aws-region=ap-southeast-1 --aws-access-key-id=env:AWS_ACCESS_KEY_ID --aws-secret-access-key=env:AWS_SECRET_ACCESS_KEY --aws-session-token=env:AWS_SESSION_TOKEN --aws-account-id="<aws-acconnt-id>" --image-tag="<commit-id>"
Build the docs/widget site and publish to S3: dagger call --source=. release --sites="docs" --aws-region=ap-southeast-1 --aws-access-key-id=env:AWS_ACCESS_KEY_ID --aws-secret-access-key=env:AWS_SECRET_ACCESS_KEY --aws-session-token=env:AWS_SESSION_TOKEN --bucket=<s3-bucket-to-push>
Examples:
Build the docs/widget site:
dagger call --source=. build --site=<docs/widget> export --path=./build
Run docs locally:
dagger call --source=. server-docs up --ports 8080:80
Build the docs/widget site image and publish to ECR:
dagger call --source=. publish --sites="docs" --aws-region=ap-southeast-1 --aws-access-key-id=env:AWS_ACCESS_KEY_ID --aws-secret-access-key=env:AWS_SECRET_ACCESS_KEY --aws-session-token=env:AWS_SESSION_TOKEN --aws-account-id="<aws-acconnt-id>" --image-tag="<commit-id>"
Build the docs/widget site and publish to S3:
dagger call --source=. release --sites="docs" --aws-region=ap-southeast-1 --aws-access-key-id=env:AWS_ACCESS_KEY_ID --aws-secret-access-key=env:AWS_SECRET_ACCESS_KEY --aws-session-token=env:AWS_SESSION_TOKEN --bucket=<s3-bucket-to-push>
Signed-off-by: luanmtruong luanmtruong@kobiton.com