Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1099 from nanliu/travis_s3
Browse files Browse the repository at this point in the history
Change s3 bucket and create latest snap build.
  • Loading branch information
jcooklin authored Jul 27, 2016
2 parents e76b102 + b238fd7 commit 8f40854
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ deploy:
access_key_id: AKIAINMB43VSSPFZISAA
secret_access_key:
secure: vEWq7ImahLeJ3n+RsazhuCuzRV5b8biZRy3HpqJlNasSAqUPvugGD8TrhaK/3fru931flVLsLdFJObG3cIHmJrJDaLS+Zv7707+yAPHOLrATedO530P89CPlJpDmbPNuqU2e+6NfCu7DZQdceXF5hSQRIVeVloHcsnoo7XG4VFHPrIOCB+JbWnVquH7wtOn3h0RcOtzQQgdehqKB2c6Yi68wFkgKIEyIQHL63m28biMn1nMH1i0lYCN4rk8kxhPWar6e86JPeDvyhUbXixokXsy0H3J819yWwZIejb0UCucJmXMG+m9jMNXwh1DoC4+HMvFnzUdB61G6nYCPFz0GRyw363sXCg2rBizkTyhVF1Bd039gWgGFm6rb5cUKTlvNuvWe+x1E0lX8G3pPa8ZFX7/i2P9GPJCt8LHnZnskIHv0Yic/+6Kt89veS0YWgQRUuSGDnhaMuJHeyZppiFr4ALUi032/qTCuTj6z/v7UMpDSkPGpCh4505mMVsx11lT7zoZnK5/1Qxfd8ysJgfPKcptJXMfYjX/8QFT9EPok4KMx6E2k8hS82rT5i1pjjE9Kw18xqJNlWOUatfX5jzzoCYxuj/d99Zu4gD0n7UUN5rcNY7xrrBwYPmPaIKOTp+k+RdwlRIhxaXr2j5GFCaSPrtDobULioJIHfdbxVjrThQY=
bucket: intelsdi-x
bucket: snap.ci.snap-telemetry.io
region: us-west-2
skip_cleanup: true
local-dir: build
Expand Down
12 changes: 9 additions & 3 deletions scripts/pre_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ __proj_dir="$(dirname "$__dir")"

build_path="${SNAP_PATH:-"${__proj_dir}/build"}"
git_sha=$(git log --pretty=format:"%H" -1)
git_path="${build_path}/${git_sha}"
git_path="${build_path}/${TRAVIS_BRANCH}/${git_sha}"
latest_path="${build_path}/${TRAVIS_BRANCH}/latest"

mkdir -p "${git_path}"
mkdir -p "${latest_path}"

_info "copying snap binaries to ${git_path}"
mv "${build_path}/bin/"* "${git_path}"
mv "${build_path}/plugin/"* "${git_path}"
cp "${build_path}/bin/"* "${git_path}"
cp "${build_path}/plugin/"* "${git_path}"
_info "copying snap binaries to ${latest_path}"
mv "${build_path}/bin/"* "${latest_path}"
mv "${build_path}/plugin/"* "${latest_path}"
4 changes: 2 additions & 2 deletions scripts/update_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ func main() {
accountID := strconv.Itoa(whoamiResponse.Data.Account.ID)
zoneID := "snap-telemetry.io"

result, err := client.Zones.ListRecords(accountID, zoneID, &dnsimple.ZoneRecordListOptions{Name: "build.ci"})
result, err := client.Zones.ListRecords(accountID, zoneID, &dnsimple.ZoneRecordListOptions{Name: "latest.snap.ci"})
if err != nil {
fmt.Printf("build.ci.snap-telemetry.io DNS record not found: %v\n", err)
fmt.Printf("latest.snap.ci.snap-telemetry.io DNS record not found: %v\n", err)
os.Exit(1)
}

Expand Down

0 comments on commit 8f40854

Please sign in to comment.