-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #941 from wordpress-mobile/publish-to-s3
Publish to s3
- Loading branch information
Showing
14 changed files
with
247 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
common-params: | ||
&publish-android-artifacts-docker-container | ||
docker#v3.8.0: | ||
image: "public.ecr.aws/automattic/android-build-image:v1.1.0" | ||
propagate-environment: true | ||
environment: | ||
# DO NOT MANUALLY SET THESE VALUES! | ||
# They are passed from the Buildkite agent to the Docker container | ||
- "AWS_ACCESS_KEY" | ||
- "AWS_SECRET_KEY" | ||
|
||
steps: | ||
- label: "Publish :aztec" | ||
key: "publish-aztec" | ||
plugins: | ||
- *publish-android-artifacts-docker-container | ||
command: | | ||
.buildkite/publish-aztec.sh | ||
- label: "Publish :glide-loader" | ||
key: "publish-glide-loader" | ||
depends_on: | ||
- "publish-aztec" | ||
plugins: | ||
- *publish-android-artifacts-docker-container | ||
command: | | ||
.buildkite/publish-glide-loader.sh | ||
- label: "Publish :picasso-loader" | ||
key: "publish-picasso-loader" | ||
depends_on: | ||
- "publish-aztec" | ||
plugins: | ||
- *publish-android-artifacts-docker-container | ||
command: | | ||
.buildkite/publish-picasso-loader.sh | ||
- label: "Publish :wordpress-shortcodes" | ||
key: "publish-wordpress-shortcodes" | ||
depends_on: | ||
- "publish-aztec" | ||
plugins: | ||
- *publish-android-artifacts-docker-container | ||
command: | | ||
.buildkite/publish-wordpress-shortcodes.sh | ||
- label: "Publish :wordpress-comments" | ||
key: "publish-wordpress-comments" | ||
depends_on: | ||
- "publish-aztec" | ||
plugins: | ||
- *publish-android-artifacts-docker-container | ||
command: | | ||
.buildkite/publish-wordpress-comments.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
./gradlew \ | ||
:aztec:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \ | ||
:aztec:publish | ||
|
||
# Add meta-data for the published version so we can use it in subsequent steps | ||
cat ./aztec/build/published-version.txt | buildkite-agent meta-data set "PUBLISHED_AZTEC_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Retrieve data from previous steps | ||
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION") | ||
|
||
./gradlew \ | ||
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \ | ||
:glide-loader:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \ | ||
:glide-loader:publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Retrieve data from previous steps | ||
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION") | ||
|
||
./gradlew \ | ||
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \ | ||
:picasso-loader:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \ | ||
:picasso-loader:publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Retrieve data from previous steps | ||
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION") | ||
|
||
./gradlew \ | ||
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \ | ||
:wordpress-comments:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \ | ||
:wordpress-comments:publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Retrieve data from previous steps | ||
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION") | ||
|
||
./gradlew \ | ||
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \ | ||
:wordpress-shortcodes:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \ | ||
:wordpress-shortcodes:publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters