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 2323 - if [[ "$TRAVIS_OS_NAME" == "linux" && "$HOSTTYPE" != "powerpc64le" ]]; then sh ci/before_script_linux.sh; fi
2424 - make validate
2525 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 {
2828 sh ' apt-get update && apt-get install -y libsecret-1-dev pass'
2929 sh ' make deps fmt lint test'
3030 sh ' make pass secretservice'
31- archiveArtifacts ' bin/docker-credential-*'
31+ sh ' make linuxrelease'
32+ archiveArtifacts ' release/docker-credential-*'
3233 }
3334 }
3435 }
@@ -45,7 +46,8 @@ pipeline {
4546 dir(' src/github.com/docker/docker-credential-helpers' ) {
4647 sh ' make deps fmt lint test'
4748 sh ' make osxcodesign'
48- archiveArtifacts ' bin/docker-credential-*'
49+ sh ' make osxrelease'
50+ archiveArtifacts ' release/docker-credential-*'
4951 }
5052 }
5153 }
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ osxcodesign: osxkeychain
2121 xcrun -log codesign -s $(SIGNINGHASH ) --force --verbose bin/docker-credential-osxkeychain
2222 xcrun codesign --verify --deep --strict --verbose=2 --display bin/docker-credential-osxkeychain
2323
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-
2924secretservice :
3025 mkdir -p bin
3126 go build -o bin/docker-credential-secretservice secretservice/cmd/main_linux.go
@@ -38,9 +33,17 @@ wincred:
3833 mkdir -p bin
3934 go build -o bin/docker-credential-wincred.exe wincred/cmd/main_windows.go
4035
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 :
4246 mkdir -p release
43- @echo " \nPackaging version ${VERSION} \n"
4447 cd bin && zip ../release/docker-credential-wincred-v$(VERSION ) -amd64.zip docker-credential-wincred.exe
4548
4649test :
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments