Add alpine build

This commit is contained in:
Kristian Haugene
2020-02-02 18:19:12 +01:00
parent 7bf156f901
commit 126dde5449

View File

@@ -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