docker-flexget/.circleci/config.yml
Winston Astrachan ca50bfb225
Added dependencies for Pillow, bumped version to 3.1.45
PR #2621 (https://github.com/Flexget/Flexget/pull/2621) added a dependency on Pillow.
Pillow has several libraries it requires that needed to be added to the Dockerfile
2020-03-25 12:10:27 -04:00

40 lines
1.1 KiB
YAML

version: 2
jobs:
build:
environment:
REPO_NAME: "wastrachan"
IMAGE_NAME: "flexget"
IMAGE_VERSION: "3.1.45"
docker:
- image: docker:latest
steps:
- checkout
- setup_remote_docker
- run:
name: Install deps
command: |
apk --no-cache add curl
- run:
name: Build image
command: |
docker build --build-arg FLEXGET_VERSION=$IMAGE_VERSION -t $IMAGE_NAME .
docker tag $IMAGE_NAME $REPO_NAME/$IMAGE_NAME:$IMAGE_VERSION
docker tag $IMAGE_NAME $REPO_NAME/$IMAGE_NAME:latest
- deploy:
name: Publish image
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push $REPO_NAME/$IMAGE_NAME:$IMAGE_VERSION
docker push $REPO_NAME/$IMAGE_NAME:latest
fi
workflows:
version: 2
commit:
jobs:
- build:
filters:
branches:
only: master