Skip to content

Commit 6255206

Browse files
committed
include git branch as build arg
1 parent d75548c commit 6255206

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/bin/docker-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ if [[ -n "${GIT_TAG}" ]]; then
1616
docker buildx build --build-arg "GIT_TAG=${GIT_TAG}" --progress plain --pull --push --platform "${DOCKER_BUILD_PLATFORM}" -t ${DOCKER_REPO}:${GIT_TAG} .
1717
elif [[ -n "${GIT_BRANCH}" ]]; then
1818
if [[ "${GIT_BRANCH}" == "master" ]]; then
19-
docker buildx build --progress plain --pull --push --platform "${DOCKER_BUILD_PLATFORM}" -t ${DOCKER_REPO}:latest .
19+
docker buildx build --build-arg "GIT_TAG=${GIT_BRANCH}" --progress plain --pull --push --platform "${DOCKER_BUILD_PLATFORM}" -t ${DOCKER_REPO}:latest .
2020
else
21-
docker buildx build --progress plain --pull --push --platform "${DOCKER_BUILD_PLATFORM}" -t ${DOCKER_REPO}:${GIT_BRANCH} .
21+
docker buildx build --build-arg "GIT_TAG=${GIT_BRANCH}" --progress plain --pull --push --platform "${DOCKER_BUILD_PLATFORM}" -t ${DOCKER_REPO}:${GIT_BRANCH} .
2222
fi
2323
else
2424
:

0 commit comments

Comments
 (0)