mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
Don’t use binaries built by Travis. Use Jenkins binaries.
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
This commit is contained in:
-26
@@ -22,29 +22,3 @@
|
|||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh ci/before_script_linux.sh; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh ci/before_script_linux.sh; fi
|
||||||
- make validate
|
- make validate
|
||||||
script: make test
|
script: make test
|
||||||
|
|
||||||
before_deploy:
|
|
||||||
- sh ci/before_deploy.sh
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
provider: releases
|
|
||||||
api_key:
|
|
||||||
secure: "$GITHUB_TOKEN"
|
|
||||||
# upload file artifacts using a glob expression.
|
|
||||||
# It requires both options `file_glob` and `file`:
|
|
||||||
# https://github.com/travis-ci/dpl/blob/master/lib/dpl/provider/releases.rb#L47-L53
|
|
||||||
file_glob: true
|
|
||||||
file: docker-credential-*-${TRAVIS_TAG}-amd64.tar.gz
|
|
||||||
# don't delete the artifacts from previous phases
|
|
||||||
skip_cleanup: true
|
|
||||||
# deploy when a new tag is pushed
|
|
||||||
on:
|
|
||||||
tags: true
|
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
# Pushes and PR to the master branch
|
|
||||||
- master
|
|
||||||
# IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
|
|
||||||
# is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
|
|
||||||
- /^v\d+\.\d+\.\d+.*$/
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
set -ex
|
|
||||||
|
|
||||||
mkdir bin
|
|
||||||
case "$TRAVIS_OS_NAME" in
|
|
||||||
"osx")
|
|
||||||
go build -o bin/docker-credential-osxkeychain osxkeychain/cmd/main_darwin.go
|
|
||||||
cd bin
|
|
||||||
tar czf ../docker-credential-osxkeychain-${TRAVIS_TAG}-amd64.tar.gz docker-credential-osxkeychain
|
|
||||||
;;
|
|
||||||
"linux")
|
|
||||||
go build -o bin/docker-credential-secretservice secretservice/cmd/main_linux.go
|
|
||||||
cd bin
|
|
||||||
tar czf ../docker-credential-secretservice-${TRAVIS_TAG}-amd64.tar.gz docker-credential-secretservice
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
Reference in New Issue
Block a user