Skip to content

Commit 9d2a7af

Browse files
committed
feat: add extra tag to build.sh for trivy
1 parent 56a90ac commit 9d2a7af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ci/lib.sh

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ ARCH="$(arch)"
9999
export ARCH
100100
OS=$(os)
101101
export OS
102+
COMMIT_SHA="$(git rev-parse HEAD)"
103+
export COMMIT_SHA
102104

103105
# RELEASE_PATH is the destination directory for the release from the root.
104106
# Defaults to release

ci/release-image/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main() {
55
cd "$(dirname "$0")/../.."
66
source ./ci/lib.sh
77

8-
docker build -t "codercom/code-server-$ARCH:$VERSION" -f ./ci/release-image/Dockerfile .
8+
docker build -t "codercom/code-server-$ARCH:$VERSION" -t "codercom/code-server:$COMMIT_SHA" -f ./ci/release-image/Dockerfile .
99
}
1010

1111
main "$@"

0 commit comments

Comments
 (0)