-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Liftric/feature/package-and-buildinfo
feature/package and buildinfo
- Loading branch information
Showing
29 changed files
with
1,507 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: '3' | ||
services: | ||
db: | ||
image: microsoft/mssql-server-linux | ||
environment: | ||
SA_PASSWORD: yourStrong(!)Password | ||
ACCEPT_EULA: Y | ||
ports: | ||
- 1433:1433 | ||
healthcheck: | ||
test: [ "CMD", "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "yourStrong(!)Password", "-Q", "select 1"] | ||
interval: 10s | ||
retries: 10 | ||
octopus: | ||
image: octopusdeploy/octopusdeploy | ||
environment: | ||
ACCEPT_EULA: Y | ||
DB_CONNECTION_STRING: Server=db,1433;Database=OctopusDeploy;User=sa;Password=yourStrong(!)Password | ||
ADMIN_USERNAME: admin | ||
ADMIN_PASSWORD: testtest123 | ||
ADMIN_API_KEY: API-TESTTEST123TRESDTSDD | ||
ports: | ||
- "8080:8080" | ||
links: | ||
- db | ||
depends_on: | ||
- db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
plugins { | ||
java | ||
id("com.liftric.octopus-deploy-plugin") version "whatever" | ||
} | ||
group = "com.liftric" | ||
version = "1.2.3" | ||
|
||
tasks { | ||
withType<Jar> { | ||
// example-1.2.3.jar would be parsed as package: example-1 with version 2.3, | ||
// so the name is changed to example.1.2.3.jar to support the octopus deploy naming convention | ||
archiveFileName.set( | ||
"${archiveBaseName.get() | ||
.removeSuffix("-")}.${archiveVersion.get()}.${archiveExtension.get()}" | ||
) | ||
} | ||
} | ||
octopus { | ||
// targets the GITROOT/docker-compose.yml ocotpus deploy instance | ||
serverUrl = "http://localhost:8080/" | ||
apiKey = "API-TESTTEST123TRESDTSDD" | ||
|
||
commitLinkBaseUrl = "${System.getenv("CI_PROJECT_URL")?.removeSuffix("/")}/commit" | ||
generateChangelogSinceLastTag = true | ||
|
||
val jar by tasks.existing(Jar::class) | ||
packageName = jar.get().archiveBaseName.get().removeSuffix("-") | ||
version = jar.get().archiveVersion.get() | ||
pushPackage = jar.get().archiveFile.get().asFile | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
rootProject.name = "example" | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
mavenLocal() | ||
} | ||
|
||
resolutionStrategy { | ||
eachPlugin { | ||
if (requested.id.id == "com.liftric.octopus-deploy-plugin") { | ||
val currentVersion = file("../build/version").readText().trim() | ||
useModule("com.liftric.octopusdeploy:octopus-deploy-plugin:${currentVersion}") | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.