forked from opensearch-project/index-management
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change release workflow to use new staging bucket for artifacts (open…
…search-project#151) Change release workflow to use new staging bucket for artifacts
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 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 |
---|---|---|
|
@@ -56,14 +56,20 @@ jobs: | |
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-access-key-id: ${{ secrets.AWS_STAGING_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_STAGING_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
- name: Upload Artifacts to S3 | ||
run: | | ||
s3_path=s3://artifacts.opendistroforelasticsearch.amazon.com/downloads | ||
aws s3 cp ${{ steps.build_zip.outputs.zip_path }} $s3_path/kibana-plugins/opendistro-index-management/ | ||
aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths '/downloads/*' | ||
zip=${{ steps.build_zip.outputs.zip_path }} | ||
# inject build number before the suffix | ||
zip_outfile=`basename ${zip%.zip}-build-${GITHUB_RUN_NUMBER}.zip` | ||
s3_prefix="s3://staging.artifacts.opendistroforelasticsearch.amazon.com/snapshots/kibana-plugins/index-management/" | ||
echo "Copying ${zip} to ${s3_prefix}${zip_outfile}" | ||
aws s3 cp --quiet $zip ${s3_prefix}${zip_outfile} | ||
- name: Create Github Draft Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
|