Skip to content

Instantly share code, notes, and snippets.

:octocat:

Alexander Zhukov ZhukovAlexander

:octocat:
Block or report user

Report or block ZhukovAlexander

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bitbucket-pipelines.yml
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"
View requirements.txt
boto3==1.9.115
bitbucket-pipes-toolkit==1.3.1
View Dockerfile
FROM python:3.7-slim
COPY requirements.txt /
RUN pip install -r requirements.txt
COPY pipe.py /
ENTRYPOINT ["python3", "pipe.py"]
View pipe.py
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},
You can’t perform that action at this time.