This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7-slim | |
COPY requirements.txt / | |
RUN pip install -r requirements.txt | |
COPY pipe.py / | |
ENTRYPOINT ["python3", "pipe.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boto3==1.9.115 | |
bitbucket-pipes-toolkit==1.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import boto3 | |
from bitbucket_pipes_toolkit import Pipe | |
# defines the schema for pipe variables | |
variables = { | |
'AWS_ACCESS_KEY_ID': {'type': 'string', 'required': True}, | |
'AWS_SECRET_ACCESS_KEY': {'type': 'string', 'required': True}, | |
'AWS_DEFAULT_REGION': {'type': 'string', 'required': True}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipelines: | |
default: | |
- step: | |
name: Create invalidation | |
script: | |
- pipe: docker://example-repository/example-image:latest | |
variables: | |
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID | |
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY | |
AWS_DEFAULT_REGION: "us-east-1" |