Skip to content

Commit 900f815

Browse files
committed
Make sure we build release artifacts and they are uploaded properly.
Signed-off-by: David Calavera <[email protected]>
1 parent 435c384 commit 900f815

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
script: make test
1414

1515
before_deploy:
16-
- mkdir bin
17-
- go build -o bin/docker-credential-osxkeychain osxkeychain/cmd/main_darwin.go
18-
- cd bin && tar czf ../docker-credential-osxkeychain-${TRAVIS_TAG}-amd64.tar.gz docker-credential-osxkeychain
16+
- sh ci/before_deploy.sh
1917

2018
deploy:
2119
provider: releases

appveyor.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ install:
3232
- go version
3333
- go env
3434

35-
build_script:
35+
build: false
36+
37+
test_script:
3638
- go vet ./wincred
3739
- go test -v github.com/docker/docker-credential-helpers/wincred
3840

39-
# Disable automatic tests
40-
test: off
41-
4241
# Equivalent to `before_deploy` phase
4342
after_test:
4443
# build binary
@@ -49,12 +48,10 @@ after_test:
4948

5049
# IMPORTANT All the artifacts need to be listed here, or they won't be uploaded to GitHub
5150
artifacts:
52-
- path: docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip
53-
name: docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip
54-
type: zip
51+
- path: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
52+
name: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
5553

5654
deploy:
57-
description: "Credential helpers release %APPVEYOR_REPO_TAG_NAME%"
5855
# All the zipped artifacts will be deployed
5956
artifact: /.*\.zip/
6057
auth_token:

ci/before_deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set -ex
2+
3+
mkdir bin
4+
go build -o bin/docker-credential-osxkeychain osxkeychain/cmd/main_darwin.go
5+
cd bin
6+
tar czf ../docker-credential-osxkeychain-${TRAVIS_TAG}-amd64.tar.gz docker-credential-osxkeychain

0 commit comments

Comments
 (0)