Skip to content

Commit

Permalink
chore: fix GIT_COMMIT in Dockerfile for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
npazosmendez committed Aug 29, 2024
1 parent ab9f535 commit cbb3c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apk add --update --no-cache git coreutils
WORKDIR /go/src/github.com/grafana/influx2cortex
COPY . .

RUN GIT_COMMIT="${DRONE_COMMIT:-$(git rev-list -1 HEAD)}"; \
RUN GIT_COMMIT="${DRONE_COMMIT:-${GITHUB_SHA:-$(git rev-list -1 HEAD)}}"; \
COMMIT_UNIX_TIMESTAMP="$(git --no-pager show -s --format=%ct "${GIT_COMMIT}")"; \
DOCKER_TAG="$(cat .tag)"; \
GOPRIVATE="github.com/grafana/*"; \
Expand Down

0 comments on commit cbb3c5c

Please sign in to comment.