Skip to content

Commit

Permalink
Download ODH deployment files during mvn build (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys authored Dec 4, 2023
1 parent 55126a0 commit 837e276
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
src/main/resources/install-files

### IntelliJ IDEA ###
.idea/
Expand Down
32 changes: 32 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<opedatahub-crds.version>1.0.6-SNAPSHOT</opedatahub-crds.version>
<checkstyle.version>10.12.5</checkstyle.version>
<maven.checkstyle.version>3.3.1</maven.checkstyle.version>
<maven.download.plugin.version>1.7.1</maven.download.plugin.version>
</properties>

<repositories>
Expand Down Expand Up @@ -239,6 +240,37 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>${maven.download.plugin.version}</version>
<executions>
<execution>
<id>get-odh-latest</id>
<phase>generate-sources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/skodjob/deployment-hub/main/open-data-hub/install/deploy.yaml</url>
<outputDirectory>${project.resources[0].directory}/install-files</outputDirectory>
<outputFileName>latest.yaml</outputFileName>
</configuration>
</execution>
<execution>
<id>get-odh-released</id>
<phase>generate-sources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://gist.githubusercontent.com/Frawless/51ab2d3b9fcdcf4348c0c46a4785dfaf/raw/b54e22385b455c0538c5bbc90fc221d68fcd4e09/odh</url>
<outputDirectory>${project.resources[0].directory}/install-files</outputDirectory>
<outputFileName>released.yaml</outputFileName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
8 changes: 8 additions & 0 deletions src/main/java/io/odh/test/install/BundleInstall.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright Skodjob authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.odh.test.install;

public class BundleInstall {
}
8 changes: 8 additions & 0 deletions src/main/java/io/odh/test/install/OlmInstall.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright Skodjob authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.odh.test.install;

public class OlmInstall {
}

0 comments on commit 837e276

Please sign in to comment.