diff --git a/.gitignore b/.gitignore index c1c3ef4..c92c585 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ target/ *.iws *.ipr .idea/ +credentials.yml \ No newline at end of file diff --git a/.mvn/settings.xml b/.mvn/settings.xml new file mode 100644 index 0000000..f8860c9 --- /dev/null +++ b/.mvn/settings.xml @@ -0,0 +1,15 @@ + + + + + sonatype-nexus-staging + ${env.sonatype_username} + ${env.sonatype_password} + + + repo.spring.io + ${env.spring_username} + ${env.spring_password} + + + diff --git a/pipeline.yml b/pipeline.yml index 0a32c6f..c19e875 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -1,5 +1,5 @@ -# fly --target spring login --concourse-url https://ci.spring.io -# fly --target spring set-pipeline --config pipeline.yml --pipeline spring-guice +# fly --target team login --concourse-url https://ci.spring.io --team-name "Spring Team" +# fly --target team set-pipeline --config pipeline.yml --pipeline spring-guice --load-vars-from credentials.yml --- resources: - name: source @@ -12,19 +12,24 @@ jobs: plan: - get: source trigger: true - - aggregate: - - task: maven - config: - platform: linux - image_resource: - type: docker-image - source: - repository: springio/maven-base - inputs: - - name: source - run: - path: ./mvnw - args: [install] - params: - TERM: -dumb + - task: maven + config: + platform: linux + image_resource: + type: docker-image + source: + repository: springio/maven-base + inputs: + - name: source + run: + dir: source + path: ./mvnw + args: [deploy, "-s", ".mvn/settings.xml", "-Dgpg.passphrase=${passphrase}"] + params: + TERM: -dumb + passphrase: {{passphrase}} + sonatype_username: {{sonatype-username}} + sonatype_password: {{sonatype-password}} + spring_username: {{spring-username}} + spring_password: {{spring-password}} \ No newline at end of file