diff --git a/.travis.yml b/.travis.yml index df8111f66..c1723315a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/scripts/pre_deploy.sh b/scripts/pre_deploy.sh index d3098b284..7ce12f24b 100755 --- a/scripts/pre_deploy.sh +++ b/scripts/pre_deploy.sh @@ -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" diff --git a/scripts/update_dns.go b/scripts/update_dns.go index e97c94bdd..3a4c9ee6f 100644 --- a/scripts/update_dns.go +++ b/scripts/update_dns.go @@ -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) }