Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Add shipit deploys of built theme to S3 #36

Merged
merged 7 commits into from
Oct 28, 2016
Merged

Add shipit deploys of built theme to S3 #36

merged 7 commits into from
Oct 28, 2016

Conversation

stevebosworth
Copy link
Contributor

we can use shipit to deploy versioned slate-theme.zip to https://sdks.shopifycdn.com/slate/latest/slate-theme.zip or https://sdks-staging.shopifycdn.com/slate/latest/slate-theme.zip for the latest build or https://sdks[-staging].shopifycdn.com/slate/[version-number]/slate-theme.zip for a versioned build.

  • do we want a staging and production version or just always deploy production since we can version if we need to?

@stevebosworth stevebosworth self-assigned this Oct 27, 2016
@stevebosworth
Copy link
Contributor Author

@Shopify/themes-fed

Copy link
Contributor

@macdonaldr93 macdonaldr93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, what version of node is shipit using? I wonder if you could simplify some of this code with ES6? For example, using arrow function so you don't have to .bind(this).

AWS.config.credentials = new AWS.Credentials(config.access_key_id, config.secret_access_key);
AWS.config.region = 'us-east-1';
} else {
console.log('Missing AWS secrets. You must decrypt the ejson first.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think console.error would be better here

ACL: 'public-read'
}, function (err, data) {
if (err) {
console.log(err, err.stack);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.error

@stevebosworth stevebosworth force-pushed the staging branch 2 times, most recently from c7b7132 to 65089e8 Compare October 27, 2016 19:21
@macdonaldr93
Copy link
Contributor

LGTM 👍

@stevebosworth stevebosworth merged commit 93ce722 into master Oct 28, 2016
@stevebosworth stevebosworth deleted the staging branch October 28, 2016 19:00
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants