Debian Codegraph @

infra/fiddler-backend/release_tag.sh

raw
1 #!/bin/bash
2 # Copyright 2024 Google LLC
3 #
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Build a tag for the Docker image based on the current datetime, user, and
8 # repo state.
9
10 set -e
11
12 DATETIME=`date -u "+%Y-%m-%dT%H_%M_%SZ"`
13 HASH=`git rev-parse HEAD`
14
15 echo "${DATETIME}-${HASH:0:7}"