Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lesomnus committed Nov 25, 2024
1 parent ce3e165 commit 28d43b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ RUN go mod download

COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -o ./bring \
&& ./bring version \
&& eval $(./bring version) \
&& echo "?" "$BRING_VERSION" "==" "$GITHUB_REF_NAME" \
&& [ "$BRING_VERSION" = "$GITHUB_REF_NAME" ]
&& ./bring version

RUN --mount=type=secret,id=github_token,env=GH_TOKEN \
if [ "$GH_TOKEN" = "" ]; then \
echo skip push assets to GitHub release \
; \
else \
echo push assets to GitHub release \
&& eval $(./bring version) \
&& echo "?" "$BRING_VERSION" "==" "$GITHUB_REF_NAME" \
&& [ "$BRING_VERSION" = "$GITHUB_REF_NAME" ] \
&& apk add --no-cache \
curl \
&& curl -sSL "https://github.com/cli/cli/releases/download/v2.62.0/gh_2.62.0_linux_$TARGETARCH.tar.gz" -o ./gh.tar.gz \
Expand Down

0 comments on commit 28d43b6

Please sign in to comment.