File tree Expand file tree Collapse file tree 6 files changed +20
-13
lines changed
sample-remote-monitor-plugin Expand file tree Collapse file tree 6 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 3535 export-env : true
3636 env :
3737 OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
38- SONATYPE_USERNAME : op://opensearch-infra-secrets/maven-central-portal-credentials/username
39- SONATYPE_PASSWORD : op://opensearch-infra-secrets/maven-central-portal-credentials/password
38+ MAVEN_SNAPSHOTS_S3_REPO : op://opensearch-infra-secrets/maven-snapshots-s3/repo
39+ MAVEN_SNAPSHOTS_S3_ROLE : op://opensearch-infra-secrets/maven-snapshots-s3/role
40+ - name : Configure AWS credentials
41+ uses : aws-actions/configure-aws-credentials@v5
42+ with :
43+ role-to-assume : ${{ env.MAVEN_SNAPSHOTS_S3_ROLE }}
44+ aws-region : us-east-1
4045 - name : publish snapshots to maven
4146 run : |
4247 ./gradlew publishShadowPublicationToSnapshotsRepository
Original file line number Diff line number Diff line change @@ -83,10 +83,11 @@ publishing {
8383 repositories {
8484 maven {
8585 name = " Snapshots"
86- url = " https://central.sonatype.com/repository/maven-snapshots/"
87- credentials {
88- username System . getenv(" SONATYPE_USERNAME" )
89- password System . getenv(" SONATYPE_PASSWORD" )
86+ url = System . getenv(" MAVEN_SNAPSHOTS_S3_REPO" )
87+ credentials(AwsCredentials ) {
88+ accessKey = System . getenv(" AWS_ACCESS_KEY_ID" )
89+ secretKey = System . getenv(" AWS_SECRET_ACCESS_KEY" )
90+ sessionToken = System . getenv(" AWS_SESSION_TOKEN" )
9091 }
9192 }
9293 }
Original file line number Diff line number Diff line change 55
66repositories {
77 mavenLocal()
8- maven { url " https://central.sonatype.com/repository/maven- snapshots/" }
8+ maven { url " https://ci.opensearch.org/ci/dbc/ snapshots/maven /" }
99 mavenCentral()
1010}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ buildscript {
2929 repositories {
3030 mavenLocal()
3131 maven {
32- url " https://central.sonatype.com/repository/maven- snapshots/"
32+ url " https://ci.opensearch.org/ci/dbc/ snapshots/maven /"
3333 mavenContent {
3434 snapshotsOnly()
3535 }
Original file line number Diff line number Diff line change 3030repositories {
3131 mavenLocal()
3232 mavenCentral()
33- maven { url " https://central.sonatype.com/repository/maven- snapshots/" }
33+ maven { url " https://ci.opensearch.org/ci/dbc/ snapshots/maven /" }
3434}
3535
3636configurations {
Original file line number Diff line number Diff line change @@ -44,10 +44,11 @@ publishing {
4444 }
4545 maven {
4646 name = " Snapshots"
47- url = " https://central.sonatype.com/repository/maven-snapshots/"
48- credentials {
49- username System . getenv(" SONATYPE_USERNAME" )
50- password System . getenv(" SONATYPE_PASSWORD" )
47+ url = System . getenv(" MAVEN_SNAPSHOTS_S3_REPO" )
48+ credentials(AwsCredentials ) {
49+ accessKey = System . getenv(" AWS_ACCESS_KEY_ID" )
50+ secretKey = System . getenv(" AWS_SECRET_ACCESS_KEY" )
51+ sessionToken = System . getenv(" AWS_SESSION_TOKEN" )
5152 }
5253 }
5354 }
You can’t perform that action at this time.
0 commit comments