-
Notifications
You must be signed in to change notification settings - Fork 8
/
circle.yml
34 lines (34 loc) · 1.03 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
version: 2
jobs:
build:
working_directory: /go/src/github.com/resin-io/sshproxy
docker:
- image: golang:1.9.2
steps:
- checkout
- setup_remote_docker
- run:
name: Install Docker Client
command: curl -SL https://get.docker.com/builds/Linux/x86_64/docker-17.03.0-ce.tgz | tar -xzC /usr/bin --strip-components=1
- run:
name: Install Dependencies
command: make dep
- run:
name: Lint Code
command: make lint
- run:
name: Run Tests
command: make test
- run:
name: Build Releases
command: make -j release
- run:
name: Build Container
command: make container
- deploy:
name: Upload Releases
command: if git describe --exact-match --tags 2>/dev/null; then make release-upload; fi
- deploy:
name: Upload Container
command: docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}" && make BRANCH=${CIRCLE_BRANCH} container-upload