Skip to content

Commit

Permalink
Merge pull request #8 from hypriot/switch-to-circleci
Browse files Browse the repository at this point in the history
Switch to CircleCI
  • Loading branch information
StefanScherer authored Feb 6, 2020
2 parents 05a543d + aed9773 commit 85e9089
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 16 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
jobs:
build:
machine: true
steps:
- checkout

- run:
name: Build image
command: |
./build.sh
- deploy:
name: Push image
command: |
if [ "$CIRCLE_TAG" != "" ]; then
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
docker tag hypriot/qemu-register hypriot/qemu-register:$CIRCLE_TAG
docker push hypriot/qemu-register:$CIRCLE_TAG
docker push hypriot/qemu-register:latest
fi
workflows:
version: 2
build_and_deploy:
jobs:
- build:
filters:
tags:
only: /.*/
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/hypriot/qemu-register.svg?branch=master)](https://travis-ci.org/hypriot/qemu-register)
[![Build Status](https://circleci.com/gh/hypriot/qemu-register.svg?style=svg)](https://circleci.com/gh/hypriot/qemu-register)

### Build Docker image
```
Expand Down

0 comments on commit 85e9089

Please sign in to comment.