From 50c4df4f457c9cf70170dacc07c491ee2c118e60 Mon Sep 17 00:00:00 2001 From: Ehren Kret <ehren@signal.org> Date: Wed, 26 May 2021 18:01:55 -0500 Subject: [PATCH] Add deploy phase bindings --- .gitignore | 11 +++++++---- service/pom.xml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 66d5ee707..6ee030cef 100644 --- a/.gitignore +++ b/.gitignore @@ -9,10 +9,13 @@ config/production.yml config/federated.yml config/staging.yml config/testing.yml -service/config/production.yml -service/config/federated.yml -service/config/staging.yml -service/config/testing.yml +config/deploy.properties +/service/config/production.yml +/service/config/federated.yml +/service/config/staging.yml +/service/config/testing.yml +/service/config/deploy.properties +/service/dependency-reduced-pom.xml .opsmanage put.sh deployer-staging.properties diff --git a/service/pom.xml b/service/pom.xml index 29fcb9016..4e41f7d06 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -479,6 +479,45 @@ </execution> </executions> </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>properties-maven-plugin</artifactId> + <version>1.0.0</version> + <executions> + <execution> + <id>read-deploy-configuration</id> + <phase>deploy</phase> + <goals> + <goal>read-project-properties</goal> + </goals> + <configuration> + <files>${project.basedir}/config/deploy.properties</files> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>com.bazaarvoice.maven.plugins</groupId> + <artifactId>s3-upload-maven-plugin</artifactId> + <version>1.5</version> + <configuration> + <source>${project.build.directory}/${project.build.finalName}-bin.tar.gz</source> + <bucketName>${deploy.bucketName}</bucketName> + <destination>${project.build.finalName}-bin.tar.gz</destination> + </configuration> + <executions> + <execution> + <id>deploy-to-s3</id> + <phase>deploy</phase> + <goals> + <goal>s3-upload</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </build> </project> -- GitLab