From 221d70ce26f7bc510e3908fe7fc2b6903fef9ce2 Mon Sep 17 00:00:00 2001 From: Jurjen Vorhauer Date: Tue, 13 Feb 2024 13:40:23 +0100 Subject: [PATCH] fixes for the deployment --- build.gradle.kts | 4 +++- deploy/deployment.yaml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4fac0f8..4881c8d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,7 @@ import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask import net.researchgate.release.ReleaseExtension import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import java.time.Instant plugins { jacoco @@ -126,7 +127,7 @@ jib { image = "ghcr.io/jvorhauer/konomas:latest" tags = mutableSetOf("$version") auth { - username = System.getenv("GITHUB_USER") + username = System.getenv("GITHUB_USERNAME") password = System.getenv("GITHUB_TOKEN") } } @@ -134,6 +135,7 @@ jib { jvmFlags = listOf("-Xms512m", "-Xmx1024m") mainClass = "blog.MainKt" ports = listOf("8080/tcp") + creationTime = Instant.now().toString() } setAllowInsecureRegistries(true) } diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 1cd2b18..59dd643 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -12,7 +12,7 @@ spec: spec: containers: - name: konomas - image: ghcr.io/jvorhauer/konomas:latest + image: ghcr.io/jvorhauer/konomas:1.0.11 env: - name: ASTRA_USERNAME valueFrom: @@ -24,7 +24,7 @@ spec: configMapKeyRef: name: astra-credentials key: ASTRA_PASSWORD - - name: KONOMAS_JTW_SECRET + - name: KONOMAS_JWT_SECRET valueFrom: configMapKeyRef: key: KONOMAS_JWT_SECRET