test build

This commit is contained in:
CatDeployed 2018-07-29 16:04:06 -04:00
parent 7e07b59886
commit 21991dbc75

View File

@ -9,18 +9,6 @@ jobs:
- run: - run:
name: Build Postal Docker Container name: Build Postal Docker Container
command: docker build -t catdeployed/postal:latest -t catdeployed/postal:alpine . command: docker build -t catdeployed/postal:latest -t catdeployed/postal:alpine .
- run:
name: Skip this job for Pull Requests
command: '[[ -v CIRCLE_PR_NUMBER ]] && circleci step halt || true'
- run:
name: Login to Docker Hub
command: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run:
name: Push to Docker Hub
command: docker push catdeployed/postal:latest
- run:
name: Push to Docker Hub
command: docker push catdeployed/postal:alpine
build-ubuntu: build-ubuntu:
machine: true machine: true
working_directory: ~/repo/ubuntu working_directory: ~/repo/ubuntu
@ -30,15 +18,26 @@ jobs:
- run: - run:
name: Build Postal Docker Container name: Build Postal Docker Container
command: docker build -t catdeployed/postal:ubuntu . command: docker build -t catdeployed/postal:ubuntu .
- run: deploy:
name: Skip this job for Pull Requests machine: true
command: '[[ -v CIRCLE_PR_NUMBER ]] && circleci step halt || true' working_directory: ~/repo/ubuntu
steps:
- run: - run:
name: Login to Docker Hub name: Login to Docker Hub
command: docker login -u $DOCKER_USER -p $DOCKER_PASS command: docker login -u $DOCKER_USER -p $DOCKER_PASS
- run: - run:
name: Push to Docker Hub name: Push to Docker Hub
command: docker push catdeployed/postal:ubuntu command: docker push catdeployed/postal:ubuntu
- run:
name: Push to Docker Hub
command: docker push catdeployed/postal:alpine
- run:
name: Login to Docker Hub
command: docker push catdeployed/postal:ubuntu
push-alpine:
machine: true
working_directory: ~/repo/ubuntu
steps:
workflows: workflows:
version: 2 version: 2
nightly: nightly:
@ -49,9 +48,19 @@ workflows:
branches: branches:
only: only:
- master - master
- dev
jobs: jobs:
- build-alpine - build-alpine
- build-ubuntu - build-ubuntu
- deploy:
requires:
- build-alpine
- build-ubuntu
filters:
branches:
only:
- master
- dev
commit: commit:
jobs: jobs:
- build-alpine - build-alpine