From 7dadc66748c4816e21ede58a2acecaec7a9501ab Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Mon, 12 Feb 2024 09:39:06 +0100 Subject: [PATCH] Setup deploy skript and fix image file name --- .idea/vcs.xml | 6 ++++++ app/build.gradle.kts | 8 ++++---- build-and-deploy.sh | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .idea/vcs.xml create mode 100755 build-and-deploy.sh diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 45234d7..0bd20f6 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -31,10 +31,10 @@ jib { container.creationTime.set(DateTimeFormatter.ISO_DATE_TIME.format(Instant.now().atZone(ZoneId.of("UTC")))) val buildDir = layout.buildDirectory.get() - outputPaths.imageId = "$buildDir/github-release.bot.id" - outputPaths.digest = "$buildDir/github-release.bot.digest" - outputPaths.imageJson = "$buildDir/github-release.bot.json" - outputPaths.tar = "$buildDir/github-release.bot.tar" + outputPaths.imageId = "$buildDir/github-release-bot.id" + outputPaths.digest = "$buildDir/github-release-bot.digest" + outputPaths.imageJson = "$buildDir/github-release-bot.json" + outputPaths.tar = "$buildDir/github-release-bot.tar" } dependencies { diff --git a/build-and-deploy.sh b/build-and-deploy.sh new file mode 100755 index 0000000..3ac47b6 --- /dev/null +++ b/build-and-deploy.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./gradlew clean build jibBuildTar && scp app/build/github-release-bot.tar "$1":~/github-release-bot/