myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit aec8e9f133150362323c7e8ee2b84bc0b7a63d89
parent 46bc2fc2879ef084e632bb902640e0ad5b62123b
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun, 28 Sep 2025 19:46:38 +0200

feat(Jenkinsfile): tag builds with commit sha

Diffstat:
MJenkinsfile | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile @@ -14,7 +14,7 @@ def secrets = [ ] node('podman'){ - checkout scm + scmVars = checkout(scm) gitleaks() withVault([vaultSecrets: secrets]) { @@ -24,8 +24,8 @@ node('podman'){ } // build with image context and name - buildahbud.execute([:], '.', 'myheats-api', 'latest', 'dockerfiles/api/Dockerfile') - buildahpush.execute('myheats-api', 'latest') + buildahbud.execute([:], '.', 'myheats-api', "${scmVars.GIT_COMMIT}", 'dockerfiles/api/Dockerfile') + buildahpush.execute('myheats-api', "${scmVars.GIT_COMMIT}") buildahbud.execute([ VITE_API_URI: "https://myheats-demo.p0c.ch", @@ -35,6 +35,6 @@ node('podman'){ VITE_WS_URI: "wss://myheats-demo.p0c.ch", VITE_WS_PORT: 443, VITE_LOCALE: "de-CH" - ], '.', 'myheats-frontend', 'latest', 'dockerfiles/frontend/Dockerfile') - buildahpush.execute('myheats-frontend', 'latest') + ], '.', 'myheats-frontend', "${scmVars.GIT_COMMIT}", 'dockerfiles/frontend/Dockerfile') + buildahpush.execute('myheats-frontend', "${scmVars.GIT_COMMIT}") }