diff --git a/.circleci/config.yml b/.circleci/config.yml index 32073a711..6c7f883b0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,6 +46,13 @@ workflows: ignore: /.*/ tags: only: /^\d+\.\d+.*/ + - build-alpine-image: + context: dockerhub + filters: + branches: + ignore: /.*/ + tags: + only: /^\d+\.\d+.*/ - build-armhf-image: context: dockerhub filters: @@ -82,6 +89,26 @@ jobs: name: Push image command: docker push $IMAGE_NAME:$IMAGE_TAG + build-alpine-image: + environment: + IMAGE_NAME: haugene/transmission-openvpn + docker: + - image: circleci/buildpack-deps:stretch + steps: + - checkout + - setup_remote_docker + - calculate-tag-name: + distro: alpine + - run: + name: Build Docker image + command: docker build -t $IMAGE_NAME:$IMAGE_TAG -f Dockerfile.alpine . + - run: + name: Login to Docker Hub + command: echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin + - run: + name: Push image + command: docker push $IMAGE_NAME:$IMAGE_TAG + build-armhf-image: environment: IMAGE_NAME: haugene/transmission-openvpn