mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
Make sure we build release artifacts and they are uploaded properly.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
+1
-3
@@ -13,9 +13,7 @@
|
||||
script: make test
|
||||
|
||||
before_deploy:
|
||||
- mkdir bin
|
||||
- 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
|
||||
- sh ci/before_deploy.sh
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
|
||||
+5
-8
@@ -32,13 +32,12 @@ install:
|
||||
- go version
|
||||
- go env
|
||||
|
||||
build_script:
|
||||
build: false
|
||||
|
||||
test_script:
|
||||
- go vet ./wincred
|
||||
- go test -v github.com/docker/docker-credential-helpers/wincred
|
||||
|
||||
# Disable automatic tests
|
||||
test: off
|
||||
|
||||
# Equivalent to `before_deploy` phase
|
||||
after_test:
|
||||
# build binary
|
||||
@@ -49,12 +48,10 @@ after_test:
|
||||
|
||||
# IMPORTANT All the artifacts need to be listed here, or they won't be uploaded to GitHub
|
||||
artifacts:
|
||||
- path: docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip
|
||||
name: docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip
|
||||
type: zip
|
||||
- path: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
|
||||
name: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
|
||||
|
||||
deploy:
|
||||
description: "Credential helpers release %APPVEYOR_REPO_TAG_NAME%"
|
||||
# All the zipped artifacts will be deployed
|
||||
artifact: /.*\.zip/
|
||||
auth_token:
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
set -ex
|
||||
|
||||
mkdir bin
|
||||
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
|
||||
Reference in New Issue
Block a user