diff --git a/.travis.yml b/.travis.yml index 108c479..65398a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,29 +22,3 @@ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh ci/before_script_linux.sh; fi - make validate 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+.*$/ diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh deleted file mode 100644 index 2b27bfe..0000000 --- a/ci/before_deploy.sh +++ /dev/null @@ -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