forked from akula74github/boomi-cicd-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
66 lines (65 loc) · 2.17 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
image: python:3.11-slim-bookworm
pipelines:
branches:
main:
- step:
name: Security Scan
script:
# Run a security scan for sensitive data.
# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
- pipe: atlassian/git-secrets-scan:0.4.3
- step:
name: Run pytest
script:
- pip install -r tests/requirements.txt
- pytest tests
- step:
name: Build Documentation
script:
- pip install -r docs/requirements.txt
- cd docs
- sphinx-build -b html . _build
artifacts:
- docs/_build/**
- step:
name: Deploy Documentation to S3
deployment: production
script:
- pipe: atlassian/aws-s3-deploy:0.3.8
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'us-east-1'
S3_BUCKET: 'boomi-cicd-cli-py'
LOCAL_PATH: 'docs/_build'
default:
- step:
name: Security Scan
script:
# Run a security scan for sensitive data.
# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
- pipe: atlassian/git-secrets-scan:0.4.3
- step:
name: Run pytest
script:
- pip install -r tests/requirements.txt
- pytest tests
- step:
name: Build Documentation
script:
- pip install -r docs/requirements.txt
- cd docs
- sphinx-build -b html . _build
artifacts:
- docs/_build/**
- step:
name: Deploy Documentation to S3
deployment: staging
script:
- pipe: atlassian/aws-s3-deploy:0.3.8
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'us-east-1'
S3_BUCKET: 'boomi-cicd-cli-py-dev'
LOCAL_PATH: 'docs/_build'