diff --git a/.github/workflows/kibana-reports-release-workflow.yml b/.github/workflows/kibana-reports-release-workflow.yml index a674a013..bbb7b156 100644 --- a/.github/workflows/kibana-reports-release-workflow.yml +++ b/.github/workflows/kibana-reports-release-workflow.yml @@ -93,7 +93,11 @@ jobs: mv ./${{ env.PLUGIN_NAME }}-*.zip .. cd .. - artifact=`ls ./${{ env.PLUGIN_NAME }}-*.zip` + linux_artifact=`ls ./${{ env.PLUGIN_NAME }}-${{ env.OD_VERSION }}-linux-x64.zip` + arm_artifact=`ls ./${{ env.PLUGIN_NAME }}-${{ env.OD_VERSION }}-linux-arm64.zip` + windows_artifact=`ls ./${{ env.PLUGIN_NAME }}-${{ env.OD_VERSION }}-windows.x64.zip` - aws s3 cp $artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/kibana-plugins/opendistro-reports/ + aws s3 cp $linux_artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/kibana-plugins/opendistro-reports/ + aws s3 cp $arm_artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/kibana-plugins/opendistro-reports/ + aws s3 cp $windows_artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/kibana-plugins/opendistro-reports/ aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/downloads/*" diff --git a/.github/workflows/reports-scheduler-release-workflow.yml b/.github/workflows/reports-scheduler-release-workflow.yml index 47e1dc34..67cab319 100644 --- a/.github/workflows/reports-scheduler-release-workflow.yml +++ b/.github/workflows/reports-scheduler-release-workflow.yml @@ -29,12 +29,12 @@ jobs: run: | cd reports-scheduler ./gradlew build buildDeb buildRpm --no-daemon --refresh-dependencies -Dbuild.snapshot=false - artifact=`ls plugin/build/distributions/*.zip` - rpm_artifact=`ls plugin/build/distributions/*.rpm` - deb_artifact=`ls plugin/build/distributions/*.deb` + artifact=`ls ./reports-scheduler/build/distributions/*.zip` + rpm_artifact=`ls ./reports-scheduler/build/distributions/*.rpm` + deb_artifact=`ls ./reports-scheduler/build/distributions/*.deb` # TODO: rename S3 bucket path after infra team assigns one - aws s3 cp $artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/elasticsearch-plugins/opendistro-sql/ - aws s3 cp $rpm_artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/rpms/opendistro-sql/ - aws s3 cp $deb_artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/debs/opendistro-sql/ - aws cloudfront create-invalidation --distribution-id E1VG5HMIWI4SA2 --paths "/downloads/*" + aws s3 cp $artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/elasticsearch-plugins/opendistro-reports-scheduler/ + aws s3 cp $rpm_artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/rpms/opendistro-reports-scheduler/ + aws s3 cp $deb_artifact s3://artifacts.opendistroforelasticsearch.amazon.com/downloads/debs/opendistro-reports-scheduler/ + aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/downloads/*"