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

Commit

Permalink
Change s3 bucket and create latest snap build.
Browse files Browse the repository at this point in the history
* use different s3 bucket to allow DNS CNAME.
* create latest snap folder.
* use different latest url.
  • Loading branch information
nanliu committed Jul 26, 2016
1 parent 1aab164 commit 7b49bae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
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
9 changes: 7 additions & 2 deletions scripts/pre_deploy.sh
Expand Up @@ -32,6 +32,11 @@ git_sha=$(git log --pretty=format:"%H" -1)
git_path="${build_path}/${git_sha}"

mkdir -p "${git_path}"
mkdir -p "${build_path}/latest"

_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"
mv "${build_path}/bin/"* "${build_path}/latest"
mv "${build_path}/plugin/"* "${build_path}/latest"
4 changes: 2 additions & 2 deletions scripts/update_dns.go
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 7b49bae

Please sign in to comment.