-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
45 lines (41 loc) · 2.01 KB
/
.gitlab-ci.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
35
36
37
38
39
40
41
42
43
44
45
---
image: metalstack/builder:latest
before_script:
- mc config host add fits https://blobstore.fi-ts.io $BLOB_ACCESS_KEY "${BLOB_SECRET_KEY}"
binary:
script:
- make platforms
- bin/cloudctl-linux-amd64 update dump bin/cloudctl-linux-amd64 > version-linux-amd64.json
- bin/cloudctl-linux-amd64 update dump bin/cloudctl-windows-amd64 > version-windows-amd64.json
- bin/cloudctl-linux-amd64 update dump bin/cloudctl-darwin-amd64 > version-darwin-amd64.json
# compatibility
- mc cp bin/cloudctl-linux-amd64 fits/cloud-native/cloudctl/cloudctl
- mc cp bin/cloudctl-linux-amd64 fits/cloud-native/cloudctl/
- mc cp bin/cloudctl-windows-amd64 fits/cloud-native/cloudctl/
- mc cp bin/cloudctl-darwin-amd64 fits/cloud-native/cloudctl/
- mc cp version-linux-amd64.json fits/cloud-native/cloudctl/
- mc cp version-windows-amd64.json fits/cloud-native/cloudctl/
- mc cp version-darwin-amd64.json fits/cloud-native/cloudctl/
only:
- master
binary-with-slug:
script:
- make platforms
- bin/cloudctl-linux-amd64 update dump bin/cloudctl-linux-amd64 > version-linux-amd64.json
- bin/cloudctl-linux-amd64 update dump bin/cloudctl-windows-amd64 > version-windows-amd64.json
- bin/cloudctl-linux-amd64 update dump bin/cloudctl-darwin-amd64 > version-darwin-amd64.json
# compatibility
- mc cp bin/cloudctl-linux-amd64 fits/cloud-native/cloudctl/${CI_COMMIT_REF_NAME}/cloudctl
- mc cp bin/cloudctl-linux-amd64 fits/cloud-native/cloudctl/${CI_COMMIT_REF_NAME}
- mc cp bin/cloudctl-windows-amd64 fits/cloud-native/cloudctl/${CI_COMMIT_REF_NAME}
- mc cp bin/cloudctl-darwin-amd64 fits/cloud-native/cloudctl/${CI_COMMIT_REF_NAME}
- mc cp version-linux-amd64.json fits/cloud-native/cloudctl/${CI_COMMIT_REF_NAME}
- mc cp version-windows-amd64.json fits/cloud-native/cloudctl/${CI_COMMIT_REF_NAME}
- mc cp version-darwin-amd64.json fits/cloud-native/cloudctl/${CI_COMMIT_REF_NAME}
only:
- tags
mergerequest:
script:
- make all
only:
- merge_requests