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
|
script: make test
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- mkdir bin
|
- sh ci/before_deploy.sh
|
||||||
- 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
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
|||||||
+5
-8
@@ -32,13 +32,12 @@ install:
|
|||||||
- go version
|
- go version
|
||||||
- go env
|
- go env
|
||||||
|
|
||||||
build_script:
|
build: false
|
||||||
|
|
||||||
|
test_script:
|
||||||
- go vet ./wincred
|
- go vet ./wincred
|
||||||
- go test -v github.com/docker/docker-credential-helpers/wincred
|
- go test -v github.com/docker/docker-credential-helpers/wincred
|
||||||
|
|
||||||
# Disable automatic tests
|
|
||||||
test: off
|
|
||||||
|
|
||||||
# Equivalent to `before_deploy` phase
|
# Equivalent to `before_deploy` phase
|
||||||
after_test:
|
after_test:
|
||||||
# build binary
|
# 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
|
# IMPORTANT All the artifacts need to be listed here, or they won't be uploaded to GitHub
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip
|
- path: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
|
||||||
name: docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip
|
name: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
|
||||||
type: zip
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
description: "Credential helpers release %APPVEYOR_REPO_TAG_NAME%"
|
|
||||||
# All the zipped artifacts will be deployed
|
# All the zipped artifacts will be deployed
|
||||||
artifact: /.*\.zip/
|
artifact: /.*\.zip/
|
||||||
auth_token:
|
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