forked from adamlaska/machine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
50 lines (44 loc) · 1.26 KB
/
config.yml
File metadata and controls
50 lines (44 loc) · 1.26 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: 2.1
workflows:
ci:
jobs:
- build
- publish:
requires: [build]
filters:
branches:
only:
- master
orbs:
aws-cli: circleci/aws-cli@1.3.1
jobs:
build:
docker:
- image: cimg/go:1.12.9
working_directory: /root/go/src/github.com/docker/machine
steps:
- checkout
- run: echo 'export GOPATH="$(go env GOPATH)"' >> "$BASH_ENV"
- run: TARGET_OS='darwin linux' TARGET_ARCH='amd64' make build-x
- persist_to_workspace:
root: .
paths:
- bin
- run: ln -s docker-machine-Linux-x86_64 bin/docker-machine
- run: apt-get update
- run: apt-get install --no-install-recommends --yes rsync
- run: go get -u golang.org/x/lint/golint
- run: make test
publish:
docker:
- image: cimg/python:3.8
environment:
AWS_DEFAULT_REGION: us-east-1
steps:
- attach_workspace:
at: .
- aws-cli/setup:
aws-access-key-id: BINARY_S3_AWS_ACCESS_KEY_ID
aws-secret-access-key: BINARY_S3_AWS_SECRET_ACCESS_KEY
profile-name: default
- run: aws s3 cp --recursive bin "s3://circleci-binary-releases/docker-machine/${CIRCLE_BUILD_NUM}-${CIRCLE_SHA1}/"