File tree Expand file tree Collapse file tree 5 files changed +14
-74
lines changed Expand file tree Collapse file tree 5 files changed +14
-74
lines changed Original file line number Diff line number Diff line change 23
23
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$HOSTTYPE" != "powerpc64le" ]]; then sh ci/before_script_linux.sh; fi
24
24
- make validate
25
25
script : make test
26
-
27
- before_deploy :
28
- - sh ci/before_deploy.sh
29
-
30
- deploy :
31
- provider : releases
32
- api_key :
33
- secure : " $GITHUB_TOKEN"
34
- # upload file artifacts using a glob expression.
35
- # It requires both options `file_glob` and `file`:
36
- # https://github.com/travis-ci/dpl/blob/master/lib/dpl/provider/releases.rb#L47-L53
37
- file_glob : true
38
- file : docker-credential-*-${TRAVIS_TAG}-amd64.tar.gz
39
- # don't delete the artifacts from previous phases
40
- skip_cleanup : true
41
- # deploy when a new tag is pushed
42
- on :
43
- tags : true
44
-
45
- branches :
46
- only :
47
- # Pushes and PR to the master branch
48
- - master
49
- # IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
50
- # is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
51
- - /^v\d+\.\d+\.\d+.*$/
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ pipeline {
28
28
sh ' apt-get update && apt-get install -y libsecret-1-dev pass'
29
29
sh ' make deps fmt lint test'
30
30
sh ' make pass secretservice'
31
- archiveArtifacts ' bin/docker-credential-*'
31
+ sh ' make linuxrelease'
32
+ archiveArtifacts ' release/docker-credential-*'
32
33
}
33
34
}
34
35
}
@@ -45,7 +46,8 @@ pipeline {
45
46
dir(' src/github.com/docker/docker-credential-helpers' ) {
46
47
sh ' make deps fmt lint test'
47
48
sh ' make osxcodesign'
48
- archiveArtifacts ' bin/docker-credential-*'
49
+ sh ' make osxrelease'
50
+ archiveArtifacts ' release/docker-credential-*'
49
51
}
50
52
}
51
53
}
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ osxcodesign: osxkeychain
21
21
xcrun -log codesign -s $(SIGNINGHASH ) --force --verbose bin/docker-credential-osxkeychain
22
22
xcrun codesign --verify --deep --strict --verbose=2 --display bin/docker-credential-osxkeychain
23
23
24
- osxrelease : clean vet_osx lint fmt test osxcodesign
25
- mkdir -p release
26
- @echo " \nPackaging version ${VERSION} \n"
27
- cd bin && tar cvfz ../release/docker-credential-osxkeychain-v$(VERSION ) -amd64.tar.gz docker-credential-osxkeychain
28
-
29
24
secretservice :
30
25
mkdir -p bin
31
26
go build -o bin/docker-credential-secretservice secretservice/cmd/main_linux.go
@@ -38,9 +33,17 @@ wincred:
38
33
mkdir -p bin
39
34
go build -o bin/docker-credential-wincred.exe wincred/cmd/main_windows.go
40
35
41
- winrelease : clean vet_win lint fmt test wincred
36
+ linuxrelease :
37
+ mkdir -p release
38
+ cd bin && tar cvfz ../release/docker-credential-pass-v$(VERSION ) -amd64.tar.gz docker-credential-pass
39
+ cd bin && tar cvfz ../release/docker-credential-secretservice-v$(VERSION ) -amd64.tar.gz docker-credential-secretservice
40
+
41
+ osxrelease :
42
+ mkdir -p release
43
+ cd bin && tar cvfz ../release/docker-credential-osxkeychain-v$(VERSION ) -amd64.tar.gz docker-credential-osxkeychain
44
+
45
+ winrelease :
42
46
mkdir -p release
43
- @echo " \nPackaging version ${VERSION} \n"
44
47
cd bin && zip ../release/docker-credential-wincred-v$(VERSION ) -amd64.zip docker-credential-wincred.exe
45
48
46
49
test :
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments